public function log($message, $context = null, $logType = null)
    {
        if (is_int($context) and is_null($logType)) {
            $logType = $context;
            $context = array();
        }

        if (!is_array($context)) {
            $context = is_null($context) ? array() : array($context);
        }

        if (!is_int($logType)) {
            $logType = self::INFO;
        }

        return call_user_func(array($this->instance, $this->logTypes[$logType]), $message, $context);
    }
public function log($message, $context = null, $logType = null)
    {
        if (is_int($context) and is_null($logType)) {
            $logType = $context;
            $context = array();
        }

        if (!is_array($context)) {
            $context = is_null($context) ? array() : array($context);
        }

        if (!is_int($logType)) {
            $logType = self::INFO;
        }

        return call_user_func(array($this->instance, $this->logTypes[$logType]), $message, $context);
    }
public function log ( $ message , $ context = null , $ logType = null ) { if ( is_int ( $ context ) and is_null ( $ logType ) ) { $ logType = $ context ; $ context = array ( ) ; } if ( ! is_array ( $ context ) ) { $ context = is_null ( $ context ) ? array ( ) : array ( $ context ) ; } if ( ! is_int ( $ logType ) ) { $ logType = self :: INFO ; } return call_user_func ( array ( $ this -> instance , $ this -> logTypes [ $ logType ] ) , $ message , $ context ) ; }
Send log message to output interface

@param string $message Message to output
@param int    $context Some context around the log
@param int    $logType The log type
@reutrn mixed
Send log message to output interface