struct Earl::Logger::Log
- Earl::Logger::Log
- Struct
- Value
- Object
Defined in:
logger.crInstance Method Summary
-
#debug(message : String) : Nil
Logs message if
#debug?
returns true. -
#debug(&block : -> String) : Nil
Logs the message returned by the block if
#debug?
returns true, otherwise the block is never invoked. -
#debug? : Bool
Returns true if the current level is DEBUG or lower.
-
#error(message : String) : Nil
Logs message if
#error?
returns true. -
#error(&block : -> String) : Nil
Logs the message returned by the block if
#error?
returns true, otherwise the block is never invoked. - #error(ex : Exception)
-
#error? : Bool
Returns true if the current level is ERROR or lower.
-
#info(message : String) : Nil
Logs message if
#info?
returns true. -
#info(&block : -> String) : Nil
Logs the message returned by the block if
#info?
returns true, otherwise the block is never invoked. -
#info? : Bool
Returns true if the current level is INFO or lower.
-
#silent? : Bool
Returns true if the current level is SILENT.
-
#warn(message : String) : Nil
Logs message if
#warn?
returns true. -
#warn(&block : -> String) : Nil
Logs the message returned by the block if
#warn?
returns true, otherwise the block is never invoked. -
#warn? : Bool
Returns true if the current level is WARN or lower.
Instance Method Detail
Logs the message returned by the block if #debug?
returns
true, otherwise the block is never invoked.
Logs the message returned by the block if #error?
returns
true, otherwise the block is never invoked.
Logs the message returned by the block if #info?
returns
true, otherwise the block is never invoked.