Add a log handler
handler | Specify the log handler. |
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.