struct Azu::AsyncLogging::LogEntry

Overview

Structured log entry with metadata

Defined in:

azu/log_format.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(timestamp : Time, severity : Log::Severity, message : String, context : Nil | Hash(String, String) = nil, exception : Exception | Nil = nil, source : String = "azu", request_id : Nil | String = nil) #

[View source]

Instance Method Detail

def context : Hash(String, String) | Nil #

[View source]
def exception : Exception | Nil #

[View source]
def message : String #

[View source]
def request_id : String | Nil #

[View source]
def severity : Log::Severity #

[View source]
def source : String #

[View source]
def timestamp : Time #

[View source]
def to_json(json : JSON::Builder) #

[View source]