struct

Earl::Logger::Log

Inherits Struct < Value < Object

Instance methods

debug(message : String) : Nil

Logs message if debug? returns true.

debug

Logs the message returned by the block if debug? returns true, otherwise the block is never invoked.

debug?

Returns true if the current level is DEBUG or lower.

error(message : String) : Nil

Logs message if error? returns true.

error

Logs the message returned by the block if error? returns true, otherwise the block is never invoked.

error(ex : Exception)
error?

Returns true if the current level is ERROR or lower.

info(message : String) : Nil

Logs message if info? returns true.

info

Logs the message returned by the block if info? returns true, otherwise the block is never invoked.

info?

Returns true if the current level is INFO or lower.

silent?

Returns true if the current level is SILENT.

warn(message : String) : Nil

Logs message if warn? returns true.

warn

Logs the message returned by the block if warn? returns true, otherwise the block is never invoked.

warn?

Returns true if the current level is WARN or lower.