protected function log($level, $mesg, $context = array())
    {
        if ($logger = $this->getLogger()) {
            $context = array_merge($this->getDefaultContext(), $context);
            $logger->log($level, $mesg, $context);
        }
    }
protected function log($level, $mesg, $context = array())
    {
        if ($logger = $this->getLogger()) {
            $context = array_merge($this->getDefaultContext(), $context);
            $logger->log($level, $mesg, $context);
        }
    }
protected function log ( $ level , $ mesg , $ context = array ( ) ) { if ( $ logger = $ this -> getLogger ( ) ) { $ context = array_merge ( $ this -> getDefaultContext ( ) , $ context ) ; $ logger -> log ( $ level , $ mesg , $ context ) ; } }
log
Log a message to the log handler if set.

@param mixed $level
@param string $mesg
@param array $context
@return void
log Log a message to the log handler if set .