module Syslog
Defined in:
syslog.crClass Method Summary
-
.alert(message : String, facility : Facility | Nil = nil) : Nil
Writes an alert syslog message with an optional facility.
-
.close : Nil
Closes the current logger.
-
.critical(message : String, facility : Facility | Nil = nil) : Nil
Writes an critical syslog message with an optional facility.
-
.debug(message : String, facility : Facility | Nil = nil) : Nil
Writes an debug syslog message with an optional facility.
-
.emergency(message : String, facility : Facility | Nil = nil) : Nil
Writes an emergency syslog message with an optional facility.
-
.error(message : String, facility : Facility | Nil = nil) : Nil
Writes an error syslog message with an optional facility.
-
.facility : Facility
Returns the loggers default facility.
-
.facility=(facility : Facility) : Nil
Sets the loggers default facility.
-
.info(message : String, facility : Facility | Nil = nil) : Nil
Writes an info syslog message with an optional facility.
-
.log(priority : Priority, message : String, facility : Facility | Nil = nil) : Nil
Writes a message with a priority and facility.
-
.mask : UInt16
Returns the loggers mask.
-
.mask=(mask : Int) : Nil
Sets the loggers mask.
-
.notice(message : String, facility : Facility | Nil = nil) : Nil
Writes an notice syslog message with an optional facility.
-
.options : Options
Returns the loggers options.
-
.options=(options : Options) : Nil
Sets the loggers options.
-
.prefix : String
Returns the string to be prefixed to log messages.
-
.prefix=(prefix : String) : Nil
Sets the string to be prefixed to log messages.
-
.reset_defaults : Nil
Resets all the loggers options to their defaults.
-
.setup(prefix : String, facility : Facility, options : Options, mask : Int) : Nil
Sets all the loggers options at once.
-
.warning(message : String, facility : Facility | Nil = nil) : Nil
Writes an warning syslog message with an optional facility.
Class Method Detail
Writes an alert syslog message with an optional facility.
Closes the current logger. Useful for shard libraries where the prefix may be unloaded.
Writes an critical syslog message with an optional facility.
Writes an debug syslog message with an optional facility.
Writes an emergency syslog message with an optional facility.
Writes an error syslog message with an optional facility.
Writes an info syslog message with an optional facility.
Writes a message with a priority and facility.
Writes an notice syslog message with an optional facility.
Sets all the loggers options at once. This is more efficient when changing many settings.
Writes an warning syslog message with an optional facility.