module

Syslog

Class methods

alert(message : String, facility : Facility | Nil = nil) : Nil

Writes an alert syslog message with an optional facility.

Source
close

Closes the current logger. Useful for shard libraries where the prefix may be unloaded.

Source
critical(message : String, facility : Facility | Nil = nil) : Nil

Writes an critical syslog message with an optional facility.

Source
debug(message : String, facility : Facility | Nil = nil) : Nil

Writes an debug syslog message with an optional facility.

Source
emergency(message : String, facility : Facility | Nil = nil) : Nil

Writes an emergency syslog message with an optional facility.

Source
error(message : String, facility : Facility | Nil = nil) : Nil

Writes an error syslog message with an optional facility.

Source
facility

Returns the loggers default facility.

Source
facility=(facility : Facility) : Nil

Sets the loggers default facility.

Source
info(message : String, facility : Facility | Nil = nil) : Nil

Writes an info syslog message with an optional facility.

Source
log(priority : Priority, message : String, facility : Facility | Nil = nil) : Nil

Writes a message with a priority and facility.

Source
mask

Returns the loggers mask.

Source
mask=(mask : Int) : Nil

Sets the loggers mask.

Source
notice(message : String, facility : Facility | Nil = nil) : Nil

Writes an notice syslog message with an optional facility.

Source
options

Returns the loggers options.

Source
options=(options : Options) : Nil

Sets the loggers options.

Source
prefix

Returns the string to be prefixed to log messages.

Source
prefix=(prefix : String) : Nil

Sets the string to be prefixed to log messages.

Source
reset_defaults

Resets all the loggers options to their defaults.

Source
setup(prefix : String, facility : Facility, options : Options, mask : Int) : Nil

Sets all the loggers options at once. This is more efficient when changing many settings.

Source
warning(message : String, facility : Facility | Nil = nil) : Nil

Writes an warning syslog message with an optional facility.

Source

Nested types