Debug.addLoggingHandler

Function/Meaning

Add a log handler

Type
Debugclassmethod of
Syntax
addLoggingHandler(handler)
Arguments
handler

Specify the log handler.

Return value
None (void)
Explanation

Register a handler that will be called each time an error log is output.
The handler is called with a log message as an argument.
Even if you output the log in the registration method, the recursive call is not made and it is ignored.