class JsonLogHandler

Defined in:

app/json_log_handler.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(io : IO::FileDescriptor = STDOUT) #

[View source]

Instance Method Detail

def call(context : HTTP::Server::Context) #

[View source]
def reopen #

reopen log file


[View source]
def write(message : String) #

Only used to log Kemal's log, we chomp the last line feed


[View source]
def write_msg(message, context : HTTP::Server::Context | Nil = nil) #

Used by zwip's log() helper function


[View source]