private function log($level, $message, array $context = array())
    {
        if (isset($this->logger)) {
            $this->logger->log($level, $message, $context);
        }
    }
private function log($level, $message, array $context = array())
    {
        if (isset($this->logger)) {
            $this->logger->log($level, $message, $context);
        }
    }
private function log ( $ level , $ message , array $ context = array ( ) ) { if ( isset ( $ this -> logger ) ) { $ this -> logger -> log ( $ level , $ message , $ context ) ; } }
Add a log record if logging is enabled.

@param int    $level   The logging level
@param string $message The log message
@param array  $context The log context
Add a log record if logging is enabled .