Interesting events.

Example: User logs in, SQL logs.

@param string|array $channel
@param string|array $message
@param array        $context

@return static
@throws \Exception
777112
public function info($channel, $message, array $context = [])
    {
        $this->log($channel, LogLevel::INFO, $message, $context);

        return $this;
    }
673721
public function log($level, $message, array $context = array())
    {
        try
        {
            return $this->logger->log($level, $message, $context);
        }
        catch (Error $ex)
        {}
        catch (Exception $ex)
        {}

        throw new WriteException("Record with undefined level could not be logged.", 0, $ex);
    }
54599
public function log($level, $message, array $context = []) {
		if (!Logger::check($level)) {
			return;
		}
		if (count($context) > 0) {
			foreach ($context as $k => $v) {
				$message = str_replace('{' . $k . '}', $v, $message);
			}
		}
		$content = sprintf("%s | %s | %s | %s", date('Y-m-d H:i:s'), $this->getLevel($level), microtime(true), $message);
		co::fwrite($this->handler, $content);
	}
83606
public function addAlert($message, array $context = array())
    {
        return $this->_instance->addRecord(\Monolog\Logger::ALERT, $message, $context);
    }
129875
public function log($message, array $context = array(), $level = Logger::INFO)
    {
        return $this['monolog']->addRecord($level, $message, $context);
    }
889152
public function addDebug($message, array $context = array())
    {
        return $this->_instance->addRecord(\Monolog\Logger::DEBUG, $message, $context);
    }
529371
public function emergency($message, array $context = array()) {
        $context['fromClass'] = get_called_class();
        foreach ($this->loggersInstances as $logger) {
            $logger->emergency($message, $context);
        }
    }
497347
protected function debugLogger(string $message, array $context = []) {
    if ($this->debug) {
      $this->logger->debug($message, $context);
    }
  }
919676
public static function emergency($message, $context = [], $channel = 'tastphp.logger')
    {
        $logger = static::getLoggerByLevelAndChannel(Monolog::ALERT, $channel);
        $logger->addEmergency($message, $context);
    }
641480
protected function logInfo(string $message, array $context = []): void
    {
        if ($this->logger !== null) {
            $this->logger->info($message, $context);
        }
    }
44868
public function log($level, $message, array $context = []) {
		if ($this->getConfig('type')) {
			$level = $this->getConfig('type');
		} elseif ($this->getConfig('file')) {
			$level = $this->getConfig('file');
		}

		return $this->Logs->log($level, $message, $context);
	}
829818
public static function alert($message, array $context = [], string $channel = self::DEFAULT_CHANNEL): void
    {
        self::log(LogLevel::ALERT, $message, $context, $channel);
    }
166006
public function log($level, $message, array $context = array())
    {
        foreach ($this->loggerInstances as $logger) {
            $logger->log($level, $message, $context);
        }
    }
1077178
public function log($level, $message, array $context = array())
    {
        if ($this->loggerInstance !== null) {
            $this->loggerInstance->log($level, $message, $context);
        } elseif ($this->loggerCallback !== null) {
            call_user_func_array($this->loggerCallback, array($level, $message, $context));
        }
    }
773020
public static function notice($message, array $context = [], string $channel = self::DEFAULT_CHANNEL): void
    {
        self::log(LogLevel::NOTICE, $message, $context, $channel);
    }
863617
public function log($channel, $level, $message, $context = '') {
        if (!$this->enabled) {
            return;
        }

        $message = ltrim($message);

        global $wpdb;

        $query = $wpdb->prepare("insert into {$this->table} (date, channel, level, message, context) values (%s, %s, %s, %s, %s)", current_time('mysql', true), $channel, $level, $message, $context);
        $wpdb->query($query);
    }
489906
public function addInfo($message, array $context = array())
    {
        return $this->_instance->addRecord(\Monolog\Logger::INFO, $message, $context);
    }