enum
Tabular::Log
Overview
A logger in which each member represents a logging level. Setting the
$TABULAR_LOG_LEVEL environment variable from the shell to a file path
directs all logging to that file.
Defined in:
tabular/log.crEnum Members
-
Fatal =
1 -
A serious error, indicating that the program itself may be unable to continue running.
-
Error =
2 -
Due to a more serious problem, the software has not been able to perform some function.
-
Warn =
3 -
An indication that something unexpected happened, or that a problem might occur in the near future.
-
Info =
4 -
Confirmation that things are working as expected.
-
Debug =
5 -
Detailed information, typically only of interest to a developer trying to diagnose a problem.
Class Method Summary
-
.dummy=(io : IO)
Redirect output to io (for testing).
-
.level=(value : UInt32)
Set the global logging level.
-
.out(*msg)
Send output to
STDOUT. -
.silence
Silence all output (for testing).
Instance Method Summary
-
#debug?
Returns
trueif this enum value equalsDebug -
#error?
Returns
trueif this enum value equalsError -
#fatal?
Returns
trueif this enum value equalsFatal -
#info?
Returns
trueif this enum value equalsInfo -
#send(msg)
Send
journaldoutput to$TABULAR_LOG_FILE(defaults toFile::NULL). -
#show(*msg)
Send pretty output to
$TABULAR_LOG_FILE(defaults toFile::NULL). -
#warn?
Returns
trueif this enum value equalsWarn