Module: EventMachine::Syslog
- Defined in:
- lib/em-syslog.rb,
lib/em-syslog/syslog.rb,
lib/em-syslog/version.rb,
lib/em-syslog/connection_tcp.rb,
lib/em-syslog/connection_udp.rb,
lib/em-syslog/connection_unix.rb
Defined Under Namespace
Modules: ConnectionTCP, ConnectionUDP
Constant Summary collapse
- SEVERITIES =
THIEVERY: github.com/kpumuk/ruby_syslog
{ :emergency => 0, # system is unusable :alert => 1, # action must be taken immediately :critical => 2, # critical conditions :error => 3, # error conditions :warning => 4, # warning conditions :notice => 5, # normal but significant condition :informational => 6, # informational messages :info => 6, # informational messages (short name for the previous) :debug => 7 # debug-level messages }
- FACILITIES =
THIEVERY: github.com/kpumuk/ruby_syslog
{ :kernel => 0, # kernel messages :user_level => 1, # user-level messages :mail => 2, # mail system :daemons => 3, # system daemons :security => 4, # security/authorization messages :internal => 5, # messages generated internally by syslogd :printer => 6, # line printer subsystem :network => 7, # network news subsystem :uucp => 8, # UUCP subsystem :clock => 9, # clock daemon :security1 => 10, # security/authorization messages :ftp => 11, # FTP daemon :ntp => 12, # NTP subsystem :log_audit => 13, # log audit :log_alert => 14, # log alert :clock1 => 15, # clock daemon :local0 => 16, # local use 0 :local1 => 17, # local use 1 :local2 => 18, # local use 2 :local3 => 19, # local use 3 :local4 => 20, # local use 4 :local5 => 21, # local use 5 :local6 => 22, # local use 6 :local7 => 23 # local use 7 }
- VERSION =
"0.0.3"
Class Method Summary collapse
-
.logger(*a) ⇒ Object
Candy for creating a new Logger object or returned a cached one.
Class Method Details
.logger(*a) ⇒ Object
Candy for creating a new Logger object or returned a cached one
15 16 17 |
# File 'lib/em-syslog.rb', line 15 def self.logger( *a) EventMachine::Logger.new( *a) end |