Debug.addLoggingHandler

Function/Meaning
Adds a logging handler
Type
Method of the Debug class
Syntax
addLoggingHandler(handler)
Arguments
handler Specifies the logging handler.
Return Value
None (void)
Description
Registers a handler to be called every time an error log is output.
The handler is called with the log message as an argument.
Even if a log is output within the registered method, recursive calls will not occur and will be ignored.