protected function log($level, $mesg, $context = array())
    {
        if ($logger = $this->getLogger()) {
            $context = array_merge($this->getDefaultContext(), $context);
            $logger->log($level, $mesg, $context);
        }
    }