class Log::Priority

Constants

ALERT
CRIT
DEBUG
EMERG
ERR
INFO
NOTICE
WARNING

Attributes

name[RW]
value[RW]

Private Class Methods

new(name) click to toggle source
# File lib/ec2/amitools/util.rb, line 212
def initialize(name)
  @name = name
  @value = eval("Syslog::LOG_#{name}")
end

Public Instance Methods

<=>(priority) click to toggle source
# File lib/ec2/amitools/util.rb, line 229
def <=>(priority)
  @value <=> priority.value
end
to_s() click to toggle source
# File lib/ec2/amitools/util.rb, line 233
def to_s
  "Priority[LOG_#{@name}]"
end