enum

Tabular::Log

Inherits Enum < Comparable < Value < Object

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.

Constants

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 methods

dummy=(io : IO)

Redirect output to io (for testing).

Source
level=(value : UInt32)

Set the global logging level.

Source
out(*msg)

Send output to STDOUT.

Source
silence

Silence all output (for testing).

Source

Instance methods

debug?

Returns true if this enum value equals Debug

Source
error?

Returns true if this enum value equals Error

Source
fatal?

Returns true if this enum value equals Fatal

Source
info?

Returns true if this enum value equals Info

Source
send(msg)

Send journald output to $TABULAR_LOG_FILE (defaults to File::NULL).

Source
show(*msg)

Send pretty output to $TABULAR_LOG_FILE (defaults to File::NULL).

Source
warn?

Returns true if this enum value equals Warn

Source