src/Ease/Logger/ToSQL.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;

        $this->insertToSQL([
            'status' => $type,
            'when' => 'NOW()',
            'sender' => $caller,
            'message' => $message]);

        $this->output($type, $logLine);
    }
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;

        $this->insertToSQL([
            'status' => $type,
            'when' => 'NOW()',
            'sender' => $caller,
            'message' => $message]);

        $this->output($type, $logLine);
    }
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 ?