Simple logging class. It allows logging the event calling it directly or as an error handler. For each error type, you may specify how to log the information.

The class may:

  • send an e-mail
  • write to a log file
  • register into database (Mysql or MSSql supported, but you may want to extend the class to support other database)
  • display the error or the message
  • do nothing... you may set to take no action in some situation.