src/WebServices/FrontController.php
public static function log($message, array $context = array(), $level = Logger::INFO, $logname = null)
    {
        $_this = self::getInstance();
        if ($_this->getOption('enable_logging')===false) {
            return;
        }
        $default_context = array(
            'url' => $_this->getRequest()->getUrl()
        );
        return self::getInstance()->getLogger()
            ->log($level, $message, array_merge($default_context, $context), $logname);
    }
public static function log($message, array $context = array(), $level = Logger::INFO, $logname = null)
    {
        $_this = self::getInstance();
        if ($_this->getOption('enable_logging')===false) {
            return;
        }
        $default_context = array(
            'url' => $_this->getRequest()->getUrl()
        );
        return self::getInstance()->getLogger()
            ->log($level, $message, array_merge($default_context, $context), $logname);
    }
public static function log ( $ message , array $ context = array ( ) , $ level = Logger :: INFO , $ logname = null ) { $ _this = self :: getInstance ( ) ; if ( $ _this -> getOption ( 'enable_logging' ) === false ) { return ; } $ default_context = array ( 'url' => $ _this -> getRequest ( ) -> getUrl ( ) ) ; return self :: getInstance ( ) -> getLogger ( ) -> log ( $ level , $ message , array_merge ( $ default_context , $ context ) , $ logname ) ; }
Shrotcut for logging message

@param string $message
@param array $context
@param int $level
@param string $logname
@return bool The result of `\Library\Logger::log()`
Shrotcut for logging message