public function log($message, $level = LogLevel::DEBUG)
    {
        if ($this->logger instanceof LoggerInterface) {
            $this->logger->log($level, $message);
        }
    }
public function log($message, $level = LogLevel::DEBUG)
    {
        if ($this->logger instanceof LoggerInterface) {
            $this->logger->log($level, $message);
        }
    }
public function log ( $ message , $ level = LogLevel :: DEBUG ) { if ( $ this -> logger instanceof LoggerInterface ) { $ this -> logger -> log ( $ level , $ message ) ; } }
Logs a Message into the Logger

@param string $message Log message
@param string $level Log Level
Logs a Message into the Logger