src/Ease/Logger/ToConsole.php
public function addToLog($caller, $message, $type = 'message')
    {
        $message = $this->set(' '.Message::getTypeUnicodeSymbol($type).' '.strip_tags($message),
            self::getTypeColor($type));
        $logLine = strftime("%D %T").' `'.$caller.'` '.$message;

        switch ($type) {
            case 'error':
                fputs($this->stderr, $logLine."\n");
                break;
            default:
                fputs($this->stdout, $logLine."\n");
                break;
        }
    }
public function addToLog($caller, $message, $type = 'message')
    {
        $message = $this->set(' '.Message::getTypeUnicodeSymbol($type).' '.strip_tags($message),
            self::getTypeColor($type));
        $logLine = strftime("%D %T").' `'.$caller.'` '.$message;

        switch ($type) {
            case 'error':
                fputs($this->stderr, $logLine."\n");
                break;
            default:
                fputs($this->stdout, $logLine."\n");
                break;
        }
    }
Zapise zapravu do logu.

@param string $caller  název volajícího objektu
@param string $message zpráva
@param string $type    typ zprávy (success|info|error|warning|*)

@return boolean|null byl report zapsán ?