Equivalent to calling add
with severity Logger::INFO
.
Equivalent to calling add
with severity Logger::WARN
.
Equivalent to calling add
with severity Logger::FATAL
.
Equivalent to calling add
with severity Logger::UNKNOWN
.
Adjust the log level during the block execution for the current Fiber
only
logger.with_level(:debug) do logger.debug { "Hello" } end
Sets the date-time format.
Argument datetime_format
should be either of these:
A string suitable for use as a format for method Time#strftime
.
nil
: the logger uses '%Y-%m-%dT%H:%M:%S.%6N'
.
Returns the date-time format; see datetime_format=
.