class Lucky::LogHandler

Included Modules

Defined in:

lucky/log_handler.cr

Constant Summary

HABITAT_SETTINGS = [{decl: skip_if : Proc(HTTP::Server::Context, Bool) | ::Nil, example: nil, validation: nil}] of Nil
REQUEST_END_KEYS = {status: "status", duration: "duration", request_id: "request_id"}
REQUEST_START_KEYS = {method: "method", path: "path", request_id: "request_id"}

These constants are used here and in the PrettyLogFormatter to make sure that the formatter looks for the right keys!

Class Method Summary

Instance Method Summary

Instance methods inherited from class Object

blank? : Bool blank?, present? : Bool present?

Class Method Detail

def self.configure(&) #

[View source]
def self.settings #

[View source]

Instance Method Detail

def call(context) #

[View source]
def logger(*args, **options) #

[View source]
def logger(*args, **options, &) #

[View source]
def settings #

[View source]