Equivalent to calling add
with severity Logger::DEBUG
.
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
.
Returns the internal Syslog
object that is initialized when the first instance is created.
Specifies the internal Syslog
object to be used.
Logs a message
at the error (syslog warning) log level, or logs the message returned from the block.
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=
.
Logs a message
at the unknown (syslog alert) log level, or logs the message returned from the block.
Logs a message
at the fatal (syslog err) log level, or logs the message returned from the block.
Logs a message
at the warn (syslog notice) log level, or logs the message returned from the block.
Logs a message
at the info (syslog info) log level, or logs the message returned from the block.
Logs a message
at the debug (syslog debug) log level, or logs the message returned from the block.
Fills in variables for Logger
compatibility. If this is the first instance of Syslog::Logger
, program_name
may be set to change the logged program name. The facility
may be set to specify the facility level which will be used.
Due to the way syslog works, only one program name may be chosen.
Almost duplicates Logger#add
. progname
is ignored.