Use example:
Code in module:
/**
* @event loggerWrapper.error
*/
function doLoggerWrapperError(ScriptEvent $e = null)
{
if ($e->sender->isDev()) {
Logger::error($e->message);
}
}
Trigger events:
$this->loggerWrapper->error("Test message!");