Class: Yell::Adapters::Syslog
- Inherits:
-
Base
- Object
- Base
- Yell::Adapters::Syslog
- Defined in:
- lib/yell/adapters/syslog.rb
Constant Summary collapse
- Severities =
Syslog severities
‘man syslog` to see the severities
[7, 6, 4, 3, 2, 1]
- OptionMap =
Map Syslog options to internal representation
{ :cons => ::Syslog::LOG_CONS, # If there is an error while sending to the system logger, write directly to the console instead. :ndelay => ::Syslog::LOG_NDELAY, # Open the connection now, rather than waiting for the first message to be written. :nowait => ::Syslog::LOG_NOWAIT, # Don’t wait for any child processes created while logging messages. (Has no effect on Linux.) :odelay => ::Syslog::LOG_ODELAY, # Opposite of LOG_NDELAY; wait until a message is sent before opening the connection. (This is the default.) :perror => ::Syslog::LOG_PERROR, # Print the message to stderr as well as sending it to syslog. (Not in POSIX.1-2001.) :pid => ::Syslog::LOG_PID # Include the current process ID with each message. }
- FacilityMap =
Map Syslog facilities to internal represenation
{ :auth => ::Syslog::LOG_AUTH, :authpriv => ::Syslog::LOG_AUTHPRIV, # :console => ::Syslog::LOG_CONSOLE, # described in 1.9.3 docu, but not defined :cron => ::Syslog::LOG_CRON, :daemon => ::Syslog::LOG_DAEMON, :ftp => ::Syslog::LOG_FTP, :kern => ::Syslog::LOG_KERN, # :lrp => ::Syslog::LOG_LRP, # described in 1.9.3 docu, but not defined :mail => ::Syslog::LOG_MAIL, :news => ::Syslog::LOG_NEWS, # :ntp => ::Syslog::LOG_NTP, # described in 1.9.3 docu, but not defined # :security => ::Syslog::LOG_SECURITY, # described in 1.9.3 docu, but not defined :syslog => ::Syslog::LOG_SYSLOG, :user => ::Syslog::LOG_USER, :uucp => ::Syslog::LOG_UUCP, :local0 => ::Syslog::LOG_LOCAL0, :local1 => ::Syslog::LOG_LOCAL1, :local2 => ::Syslog::LOG_LOCAL2, :local3 => ::Syslog::LOG_LOCAL3, :local4 => ::Syslog::LOG_LOCAL4, :local5 => ::Syslog::LOG_LOCAL5, :local6 => ::Syslog::LOG_LOCAL6, :local7 => ::Syslog::LOG_LOCAL7 }
Instance Attribute Summary collapse
-
#facility(*values) ⇒ Object
Deprecated, use facility= in future.
-
#ident(val = nil) ⇒ Object
Deprecated: use :ident= in future.
-
#options(*values) ⇒ Object
Deprecated: use options= in future.
Instance Attribute Details
#facility(*values) ⇒ Object
Deprecated, use facility= in future
80 81 82 |
# File 'lib/yell/adapters/syslog.rb', line 80 def facility @facility end |
#ident(val = nil) ⇒ Object
Deprecated: use :ident= in future
74 75 76 |
# File 'lib/yell/adapters/syslog.rb', line 74 def ident @ident end |
#options(*values) ⇒ Object
Deprecated: use options= in future
77 78 79 |
# File 'lib/yell/adapters/syslog.rb', line 77 def @options end |