src/Ease/Logger/ToMemory.php
public function addToLog($caller, $message, $type = 'message')
    {
        ++$this->messageID;
        if ((($type != 'error') && ($this->logLevel == 'silent')) ||
            (($type == 'debug') && ($this->logLevel != 'debug'))) {
            return;
        }

        $this->statusMessages[$type][$this->messageID] = $message;

        $message = htmlspecialchars_decode(strip_tags(stripslashes($message)));

        $logLine = date(DATE_ATOM).' ('.$caller.') '.str_replace(['notice', 'message',
                'debug', 'report', 'error', 'warning', 'success', 'info', 'mail',],
                ['**', '##', '@@', '::'], $type).' '.$message."\n";
        if (!isset($this->logStyles[$type])) {
            $type = 'notice';
        }
        if ($this->logType == 'console' || $this->logType == 'both') {
            if ($this->runType == 'cgi') {
                echo $logLine;
            } else {
                echo '<div style="'.$this->logStyles[$type].'">'.$logLine."</div>\n";
                flush();
            }
        }

        return true;
    }
public function addToLog($caller, $message, $type = 'message')
    {
        ++$this->messageID;
        if ((($type != 'error') && ($this->logLevel == 'silent')) ||
            (($type == 'debug') && ($this->logLevel != 'debug'))) {
            return;
        }

        $this->statusMessages[$type][$this->messageID] = $message;

        $message = htmlspecialchars_decode(strip_tags(stripslashes($message)));

        $logLine = date(DATE_ATOM).' ('.$caller.') '.str_replace(['notice', 'message',
                'debug', 'report', 'error', 'warning', 'success', 'info', 'mail',],
                ['**', '##', '@@', '::'], $type).' '.$message."\n";
        if (!isset($this->logStyles[$type])) {
            $type = 'notice';
        }
        if ($this->logType == 'console' || $this->logType == 'both') {
            if ($this->runType == 'cgi') {
                echo $logLine;
            } else {
                echo '<div style="'.$this->logStyles[$type].'">'.$logLine."</div>\n";
                flush();
            }
        }

        return true;
    }
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 bool byl report zapsán ?