src/Ease/Logger/ToEmail.php
public function addToLog($caller, $message, $type = 'message')
    {

        if (!is_object($this->mailer)) {
            $this->mailer = new \Ease\Mailer($this->recipient, $this->subject);
            $this->mailer->setUserNotification(false);
        }

        ++$this->messageID;
        if (($this->logLevel == 'silent') && ($type != 'error')) {
            return;
        }
        if (($this->logLevel != 'debug') && ($type == 'debug')) {
            return;
        }

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


        if (!isset($this->logStyles[$type])) {
            $type = 'notice';
        }

        $logLine = new \Ease\Html\DivTag(strftime("%D %T").' `'.$caller.'`: '.$message,
            ['style' => $this->logStyles[$type]]);

        $this->mailer->addItem(\Ease\Shared::linkify($logLine));

        return true;
    }
public function addToLog($caller, $message, $type = 'message')
    {

        if (!is_object($this->mailer)) {
            $this->mailer = new \Ease\Mailer($this->recipient, $this->subject);
            $this->mailer->setUserNotification(false);
        }

        ++$this->messageID;
        if (($this->logLevel == 'silent') && ($type != 'error')) {
            return;
        }
        if (($this->logLevel != 'debug') && ($type == 'debug')) {
            return;
        }

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


        if (!isset($this->logStyles[$type])) {
            $type = 'notice';
        }

        $logLine = new \Ease\Html\DivTag(strftime("%D %T").' `'.$caller.'`: '.$message,
            ['style' => $this->logStyles[$type]]);

        $this->mailer->addItem(\Ease\Shared::linkify($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 ?