src/Ease/Molecule.php
public function addToLog($message, $type = 'message')
    {
        $logged = false;
        if (isset($this->logger) && is_object($this->logger)) {
            $this->logger->addToLog($this->getObjectName(), $message, $type);
        } else {
            $logged = Shared::logger()->addToLog($this->getObjectName(),
                $message, $type);
        }

        return $logged;
    }
public function addToLog($message, $type = 'message')
    {
        $logged = false;
        if (isset($this->logger) && is_object($this->logger)) {
            $this->logger->addToLog($this->getObjectName(), $message, $type);
        } else {
            $logged = Shared::logger()->addToLog($this->getObjectName(),
                $message, $type);
        }

        return $logged;
    }
Zapíše zprávu do logu.

@param string $message zpráva
@param string $type    typ zprávy (info|warning|success|error|*)

@return bool byl report zapsán ?