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

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

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

        $user = \Ease\Shared::user();
        if( get_class($user) !== 'Ease\\Anonym' ) {
            if( method_exists($user, 'getUserName')){
                $person =  $user->getUserName();
            } else {
                $person = $user->getObjectName();
            }
            $caller = $person.' '.$caller;
        } 

        $logLine = ' `'.$caller.'` '.str_replace(['notice', 'message', 'debug', 'report',
                'error', 'warning', 'success', 'info', 'mail',],
                ['**', '##', '@@', '::'], $type).' '.$message."\n";
        if (!isset($this->logStyles[$type])) {
            $type = 'notice';
        }

        $this->output($type, $logLine);

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

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

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

        $user = \Ease\Shared::user();
        if( get_class($user) !== 'Ease\\Anonym' ) {
            if( method_exists($user, 'getUserName')){
                $person =  $user->getUserName();
            } else {
                $person = $user->getObjectName();
            }
            $caller = $person.' '.$caller;
        } 

        $logLine = ' `'.$caller.'` '.str_replace(['notice', 'message', 'debug', 'report',
                'error', 'warning', 'success', 'info', 'mail',],
                ['**', '##', '@@', '::'], $type).' '.$message."\n";
        if (!isset($this->logStyles[$type])) {
            $type = 'notice';
        }

        $this->output($type, $logLine);

        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 null|boolean byl report zapsán ?