Lines Matching defs:syslog
1 require 'syslog'
5 # Syslog::Logger is a Logger work-alike that logs via syslog instead of to a
14 # Syslog::Logger uses syslog (and in some ways, a limitation of the way
15 # syslog(3) works). Attempts to change Syslog::Logger's program name after
22 # require 'syslog/logger'
25 # log.info 'this line will be logged via syslog(3)'
27 # You may need to perform some syslog.conf setup first. For a BSD machine add
28 # the following lines to /etc/syslog.conf:
64 # Maps Logger warning types to syslog(3) warning types.
67 # from other system daemons using syslog(3), so most messages are reduced by
69 # an error for syslog(3).
84 def self.syslog
85 @@syslog
91 def self.syslog= syslog
92 @@syslog = syslog
114 # Logs a +message+ at the unknown (syslog alert) log level, or logs the
120 # Logs a +message+ at the fatal (syslog err) log level, or logs the message
126 # Logs a +message+ at the error (syslog warning) log level, or logs the
132 # Logs a +message+ at the warn (syslog notice) log level, or logs the
138 # Logs a +message+ at the info (syslog info) log level, or logs the message
144 # Logs a +message+ at the debug (syslog debug) log level, or logs the
175 # Due to the way syslog works, only one program name may be chosen.
181 @@syslog ||= Syslog.open(program_name)
190 @@syslog.log LEVEL_MAP[severity], '%s', formatter.call(severity, Time.now, progname, (message || block.call))