Override the default logger behavior using this method.
Can be called before activate
Parameters
The function will be called for each message with the appropriate logLevel (e.g. when logLevel is set to WARN, you will receive only WARN and ERROR logs, but not INFO or VERBOSE).