class

LogCR::Logger

Inherits Reference < Object

Logger class manages the configuration of the Logger

Constructors

new(prefix : String, level : LogCR::LogLevel, format : LogCR::Format, output : IO = STDOUT)
Source

Instance methods

debug(message : String, line = __LINE__, file = __FILE__) : String

Create a new debug log message

Source
error(message : String, line = __LINE__, file = __FILE__) : String

Create a new error log message

Source
format
Source
info(message : String, line = __LINE__, file = __FILE__) : String

Create a new info log message

Source
level
Source
output
Source
prefix
Source
warn(message : String, line = __LINE__, file = __FILE__) : String

Create a new warn log message

Source
with_fields(fields : Hash(String, String)) : LogCR::Entry

Create a new Log entry with the provided fields

Source