self:$logger can be undefined in case register is not called