Sha256: 74a2357454e9b5e777ad11978fabac1c1c57e4424813838563d04af5b80887ae

Contents?: true

Size: 762 Bytes

Versions: 4

Compression:

Stored size: 762 Bytes

Contents

module RemoteSyslog
  class Levels
    SEVERITIES = {
      :emerg => 0,
      :alert => 1,
      :crit  => 2,
      :err   => 3,
      :warning => 4,
      :notice  => 5,
      :info  => 6,
      :debug => 7
    }.freeze
    
    FACILITIES = {
      :kern => (0<<3),
      :user => (1<<3),
      :mail => (2<<3),
      :daemon => (3<<3),
      :auth => (4<<3),
      :syslog => (5<<3),
      :lpr  => (6<<3),
      :news => (7<<3),
      :uucp => (8<<3),
      :cron => (9<<3),
      :authpriv => (10<<3),
      :ftp  => (11<<3),
      :local0 => (16<<3),
      :local1 => (17<<3),
      :local2 => (18<<3),
      :local3 => (19<<3),
      :local4 => (20<<3),
      :local5 => (21<<3),
      :local6 => (22<<3),
      :local7 => (23<<3)
    }.freeze
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
remote_syslog-1.1.1 lib/remote_syslog/levels.rb
remote_syslog-1.1.0 lib/remote_syslog/levels.rb
remote_syslog-1.0.0 lib/remote_syslog/levels.rb
remote_syslog-0.1.0 lib/remote_syslog/levels.rb