struct LogCR::Entry
- LogCR::Entry
- Struct
- Value
- Object
Overview
Stores the data about a particular log entry and can be used to create a log message
Defined in:
logcr.crConstructors
- .new(message : String, fields : Hash(String, String), logger : LogCR::Logger)
- .new(message : String, logger : LogCR::Logger)
Instance Method Summary
-
#debug(message : String, line = __LINE__, file = __FILE__) : String
Create a new debug log message
-
#error(message : String, line = __LINE__, file = __FILE__) : String
Create a new error log message
- #fields : Hash(String, String)
-
#info(message : String, line = __LINE__, file = __FILE__) : String
Create a new info log message
- #message : String
-
#warn(message : String, line = __LINE__, file = __FILE__) : String
Create a new warn log message
-
#with_fields(fields : Hash(String, String)) : LogCR::Entry
Create a new log entry with these added fields
Constructor Detail
def self.new(message : String, fields : Hash(String, String), logger : LogCR::Logger)
#
Instance Method Detail
def debug(message : String, line = __LINE__, file = __FILE__) : String
#
Create a new debug log message
def error(message : String, line = __LINE__, file = __FILE__) : String
#
Create a new error log message
def info(message : String, line = __LINE__, file = __FILE__) : String
#
Create a new info log message
def warn(message : String, line = __LINE__, file = __FILE__) : String
#
Create a new warn log message
def with_fields(fields : Hash(String, String)) : LogCR::Entry
#
Create a new log entry with these added fields