Class logging error, warning, information or debug messages.
Optional
Add a listener function invoked when a log event with the specified level occurs.
Class logging error, warning, information or debug messages.