@param string $level
@param string $message

@return $this
354486
public function addNotice($level, $message) {
			add_action('admin_notices', function() use ($level, $message) {
				printf('<div class="%1$s"><p>%2$s</p></div>', $level, $message);
			});

			return $this;
		}
365692
public function log($channel, $level, $message, array $context = [])
    {
        if (is_array($channel)) {
            foreach ($channel as $cat) {
                $this->log($cat, $level, $message, $context);
            }

            return $this;
        }

        if (is_array($message)) {
            foreach ($message as $msg) {
                $this->log($channel, $level, $msg, $context);
            }

            return $this;
        }

        $this->getLogger($channel)->log($level, $message, $context);

        return $this;
    }
268274
public function setLevel($level)
    {
        if (!is_int($level)) {
            $plop = \Plop\Plop::getInstance();
            $level = $plop->getLevelValue($level);
        }
        $this->level = $level;
        return $this;
    }
228803
public function message($message, $title = 'Notice', $level = null)
    {
        $this->session->flash('flash_notification.message', $message);
        $this->session->flash('flash_notification.title', $title);
        $this->session->flash('flash_notification.level', $level);

        return $this;
    }
836297
public function add_message( $message, $level = null ) {
		if ( ! $message instanceof Message ) {
			$message = new Message( compact( 'message', 'level' ) );
		}

		// Push the messages in the queue.
		$this->messages->push( $message );

		return $this->flash();
	}
169598
function log($level, $message, array $context = array())
	{
		foreach($this->_loggers as $logger)
			$logger->log($level, $message, $context);

		return $this;
	}
1363454
public function log(
        $level,
        $message,
        $paymentMethod,
        array $context = []
    ) {
        if (!$this->active) {
            return $this;
        }

        $this
            ->logger
            ->log(
                $level,
                "[$paymentMethod] - $message",
                $context
            );

        return $this;
    }
243626
public static function log($level, $message)
    {
        if ($level <= self::$logLevel) {
            $level = ($level === 3) ? "debug" : (($level === 2) ? "info" : "warn");
            error_log(sprintf('[%s] tideways - %s', $level, $message), 0);
        }
    }
1281260
private static function log(string $message, int $level) {
        \Logger::configure(self::getConfiguration());
        $logger = \Logger::getRootLogger();
        $logger->setLevel(self::getLoggerLevel());

        switch ($level) {
            case Logger::DEBUG:
                $logger->debug($message);
                break;
            case Logger::INFO:
                $logger->info($message);
                break;
            case Logger::WARN:
                $logger->warn($message);
                break;
            case Logger::ERROR:
                $logger->error($message);
                break;
            case Logger::FATAL:
                $logger->fatal($message);
                break;
            case Logger::TRACE:
                $logger->trace($message);
                break;
            default:
        }
    }
53515
public function log($level, $message, array $context = [])
    {
        $log_levels = array_flip(get_class_methods(__CLASS__));
        unset($log_levels['log']);

        if (isset($log_levels[$level])) {
            return $this->$level($message, $context);
        }
    }
401237
protected function log($level, $message, array $context = array())
    {
        if (null === $this->logger && $this->getServiceManager()->has('logger')) {
            $this->logger = $this->getServiceManager()->get('logger');
        }

        if ($this->logger) {
            $this->logger->log($level, $message, $context);
        }
    }
456858
public function log($message, $level = 0) {
        foreach ($this->_loggers as $logger) {
            try {
                $logger->logMessage($message, $level);
            } catch (LoggerException $e) {
                throw $e;
            }
        }
    }
1038400
public function addRecord($level, $message, array $context = array())
    {
        if (empty($this->handlers)) {
            $emptyHandler = new StreamHandler('php://temp');
            $emptyHandler->setFormatter(new LineFormatter());
            $this->pushHandler($emptyHandler);
        }

        return parent::addRecord($level, $message, $context);
    }
353580
public function log($level, $message, array $context = array())
    {
        if (!array_key_exists($level, $this->levels)) {
            $level = $this->defaultLevel;
        }
        
        $level = \LoggerLevel::toLevel($this->levels[$level], $this->defaultLevel);
        
        $message = $this->formatter->format($level, $message, $context);

        $this->logger->log($level, $message);
    }
430650
public static function logToFile($message, $level)
    {
        if ($level > self::$config['level']) {
            return;
        }
        
        $filename = self::$config['filename'];
        $template = self::$config['message_template'];
        $tags = array(
            '%date%' => @date('Y-m-d H:i:s'), 
            '%level%' => $level,
            '%message%' => $message
        );
        
        $file = fopen($filename, 'a');
        fwrite($file, str_replace(array_keys($tags), array_values($tags), $template) . "\n");
        fclose($file);
        $file = null;
    }
78923
final protected static function callErrorLogger($level, $message)
	{
		if (is_null(static::$errorLoggerInstance)) {
			static::$errorLoggerInstance = new self;
		}
		static::$errorLoggerInstance->{
			static::$errorLoggerInstance->errorToLogLevel($level)
		}($message);
	}
825272
protected function addRecord($level, $message, array $context = array())
    {
        $message = $this->interpolate($message, $context);
        $record = array(
            'message' => (string) $message,
            'context' => $context,
            'level' => self::getLevelCode($level),
            'level_name' => strtoupper($level),
            'datetime' => new \DateTime(),
            'ip' => self::getUserIp(),
            'pid' => @getmypid(),
            'extra' => array(),
        );
        return self::write(self::getLogRecord($record)."\n", $level);
    }