class Azu::AsyncLogging::AsyncLogger

Overview

Async logger wrapper

Defined in:

azu/log_format.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source : String = "azu", request_id : String | Nil = nil) #

[View source]

Instance Method Detail

def debug(message : String, context : Hash(String, String) | Nil = nil) #

[View source]
def error(message : String, context : Hash(String, String) | Nil = nil, exception : Exception | Nil = nil) #

[View source]
def fatal(message : String, context : Hash(String, String) | Nil = nil, exception : Exception | Nil = nil) #

[View source]
def info(message : String, context : Hash(String, String) | Nil = nil) #

[View source]
def log(severity : Log::Severity, message : String, context : Hash(String, String) | Nil = nil, exception : Exception | Nil = nil) #

[View source]
def request_id : String | Nil #

[View source]
def source : String #

[View source]
def warn(message : String, context : Hash(String, String) | Nil = nil) #

[View source]
def with_request_id(request_id : String) #

[View source]