Actually error_log enables to output the message in Apache log.
I used this for 2 purpose:
  - set a fail2ban jail to ban completely the IP address for several day
  - Get the information in tool like logwatch to know this kind of tentative happened.

Tool::logm does not put the message in Apache log as far as I understand.