Net/Notifier/LoggerCLI.php
public function log(
        $message,
        $priority = Net_Notifier_Logger::VERBOSITY_MESSAGES,
        $timestamp = true
    ) {
        if ($priority <= $this->verbosity) {
            $message = ($timestamp)
                ? '[' . date('Y-m-d H:i:s') . '] ' . $message
                : $message;

            if ($priority === Net_Notifier_Logger::VERBOSITY_ERRORS) {
                $this->outputter->stderr($message);
            } else {
                $this->outputter->stdout($message);
            }
        }

        return $this;
    }
public function log(
        $message,
        $priority = Net_Notifier_Logger::VERBOSITY_MESSAGES,
        $timestamp = true
    ) {
        if ($priority <= $this->verbosity) {
            $message = ($timestamp)
                ? '[' . date('Y-m-d H:i:s') . '] ' . $message
                : $message;

            if ($priority === Net_Notifier_Logger::VERBOSITY_ERRORS) {
                $this->outputter->stderr($message);
            } else {
                $this->outputter->stdout($message);
            }
        }

        return $this;
    }
public function log ( $ message , $ priority = Net_Notifier_Logger :: VERBOSITY_MESSAGES , $ timestamp = true ) { if ( $ priority <= $ this -> verbosity ) { $ message = ( $ timestamp ) ? '[' . date ( 'Y-m-d H:i:s' ) . '] ' . $ message : $ message ; if ( $ priority === Net_Notifier_Logger :: VERBOSITY_ERRORS ) { $ this -> outputter -> stderr ( $ message ) ; } else { $ this -> outputter -> stdout ( $ message ) ; } } return $ this ; }
Logs a message based on the verbosity level

@param string  $message   the message to log.
@param integer $priority  an optional verbosity level to display at. If
not specified,
{@link Net_Notifier_Logger::VERBOSITY_MESSAGES}
is used.
@param boolean $timestamp optional. Whether or not to include a
timestamp with the output. True by default.

@return Net_Notifier_Logger the current object, for fluent interface.
Logs a message based on the verbosity level