class

JsonLogHandler

Inherits Kemal::BaseLogHandler < HTTP::Handler < Reference < Object

Constructors

new(io : IO::FileDescriptor = STDOUT)
Source

Instance methods

call(context : HTTP::Server::Context)
Source
reopen

reopen log file

Source
write(message : String)

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

Source
write_msg(message, context : HTTP::Server::Context | Nil = nil)

Used by zwip's log() helper function

Source