Example of an error handler function that logs the error message, the file name, line number, function name, class name, including backtrace of all the function calls that lead to the line where the error occurred.
Class:
Log watcher Watch a log file and e-mail newly added lines
You need to be a registered user and log in to access this file.