Normal but significant events.

@param string $message The message to log
@param array  $context The context (e.g. template variables)

@author Benjamin Carl <opensource@clickalicious.de>

@return $this Instance of this class for chaining
517543
public function notice($message, array $context = [])
    {
        $this->log(Doozr_Logging_Constant::NOTICE, $message, $context);

        return $this;
    }
987042
public function critical($message, array $context = []) {
        $this->logger->critical($this->prefixMessage($message), $context);
    }
944988
public function notice($message, array $context = []): void {
        $this->log(LogLevel::NOTICE, $message, $context);
    }
1326699
public function pushLog($message, array $context = [])
    {
        if ($this->logFile) {
            Log::getInstance([
                'channel' => 'SQL',
                'level' => 'info',
                'maxSize' => 1000000, // default
            ])->pushInfo($message, $context);
        }
    }
687584
public function error($message, array $context = array())
    {
        if (self::isSetLogger()) {
            return self::$logger->error($message, $context);
        }

        return false;
    }
178482
protected function logInfo($message, array $context = [])
    {
        $this->hasLogger() === true ?: $this->logger->info($message, $context);
    }
1277107
public function alert(string $message, array $context = []){
        if($this->logger !== null){
            $this->logger->alert($message, $context);
        }

        if($this->messagePanel !== null){
            $this->messagePanel->addMessage($message, LogLevel::ALERT);
        }
    }
227478
public function beginDebug(string $message, array $context = []) {
        return $this->begin(LogLevel::DEBUG, $message, $context);
    }
875727
public function emergency($message, array $context = [])
    {
        $this->log(Doozr_Logging_Constant::EMERGENCY, $message, $context);

        return $this;
    }
7108
public function error($channel, $message, array $context = [])
    {
        $this->log($channel, LogLevel::ERROR, $message, $context);

        return $this;
    }
705791
public static function log($message, array $context = array(), $level = Logger::INFO, $logname = null)
    {
        $_this = self::getInstance();
        if ($_this->getOption('enable_logging')===false) {
            return;
        }
        $default_context = array(
            'url' => $_this->getRequest()->getUrl()
        );
        return self::getInstance()->getLogger()
            ->log($level, $message, array_merge($default_context, $context), $logname);
    }
1324079
public function info(string $message, array $context = []){
        if($this->logger !== null){
            $this->logger->info($message, $context);
        }

        if($this->messagePanel !== null){
            $this->messagePanel->addMessage($message, LogLevel::INFO);
        }
    }
943228
public static function debug($message, $context)
    {
        self::$logger->pushHandler(new StreamHandler(self::$log_file), Logger::DEBUG);
        return self::$logger->debug($message, $context);

    }
810380
public function beginWarning(string $message, array $context = []) {
        return $this->begin(LogLevel::WARNING, $message, $context);
    }
74945
public function notice(string $message, array $context = []){
        if($this->logger !== null){
            $this->logger->notice($message, $context);
        }

        if($this->messagePanel !== null){
            $this->messagePanel->addMessage($message, LogLevel::NOTICE);
        }
    }
631654
public function log($level, $message, array $context = [])
    {
        if (count($this->handlers) === 0) {
            throw new RuntimeException('You must define at least one logging handler, none provided.');
        }

        foreach ($this->handlers as $handler) {

            $this->logs[] = sprintf('[%s] %s', $level, $message);

            $handler->write($level, $message, $context);
        }

        return $this;
    }
1023920
public function critical($message, array $context = array())
    {
        // TODO: Implement critical() method.
        return $this->addRecord(\Psr\Log\LogLevel::CRITICAL, $message, $context);
    }