Airship\Engine\Bolt\Log::log PHP Method

log() public method

Log a message with a specific error level
public log ( string $message, string $level = LogLevel::ERROR, array $context = [] ) : mixed
$message string
$level string
$context array
return mixed
    public function log(string $message, string $level = LogLevel::ERROR, array $context = [])
    {
        if ($level === LogLevel::DEBUG) {
            $state = State::instance();
            if (!$state->universal['debug']) {
                // Don't log debug messages unless debug mode is on:
                return null;
            }
        }
        $state = State::instance();
        return $state->logger->log($level, $message, $context);
    }
Log