module Syslog

Defined in:

syslog.cr

Class Method Summary

Class Method Detail

def self.alert(message : String, facility : Facility = @@facility) : Nil #

Writes an alert syslog message with an optional facility.


[View source]
def self.close : Nil #

Closes the descriptor being used to write to the system logger, clearing special options. The use of this method is optional.

NOTE This API may be replaced in a future version.


[View source]
def self.critical(message : String, facility : Facility = @@facility) : Nil #

Writes an critical syslog message with an optional facility.


[View source]
def self.debug(message : String, facility : Facility = @@facility) : Nil #

Writes an debug syslog message with an optional facility.


[View source]
def self.emergency(message : String, facility : Facility = @@facility) : Nil #

Writes an emergency syslog message with an optional facility.


[View source]
def self.error(message : String, facility : Facility = @@facility) : Nil #

Writes an error syslog message with an optional facility.


[View source]
def self.facility : Facility #

[View source]
def self.facility=(facility : Facility) #

[View source]
def self.info(message : String, facility : Facility = @@facility) : Nil #

Writes an info syslog message with an optional facility.


[View source]
def self.log(priority : Priority, facility : Facility, message : String) : Nil #

Writes a message with a priority and facility.


[View source]
def self.mask=(mask : Int) : Nil #

[View source]
def self.notice(message : String, facility : Facility = @@facility) : Nil #

Writes an notice syslog message with an optional facility.


[View source]
def self.open(prefix : String, facility : Facility = @@default_facility) : Nil #

Initializes the log file for special processing. The use of this method is optional.

NOTE This API may be replaced in a future version.


[View source]
def self.open(prefix : String, facility : Facility = @@facility, *options : Option) : Nil #

Initializes the log file for special processing. The use of this method is optional.

NOTE This API may be replaced in a future version.


[View source]
def self.warning(message : String, facility : Facility = @@facility) : Nil #

Writes an warning syslog message with an optional facility.


[View source]