Module: Syslog::Level

Included in:
Constants
Defined in:
lib/syslog/jruby.rb,
ext/syslog/syslog.c

Constant Summary collapse

LOG_EMERG =
Constants::LOG_EMERG
LOG_ALERT =
Constants::LOG_ALERT
LOG_CRIT =
Constants::LOG_CRIT
LOG_ERR =
Constants::LOG_ERR
LOG_WARNING =
Constants::LOG_WARNING
LOG_NOTICE =
Constants::LOG_NOTICE
LOG_INFO =
Constants::LOG_INFO
LOG_DEBUG =
Constants::LOG_DEBUG

Instance Method Summary collapse

Instance Method Details

#alert(*args) ⇒ Object



41
42
43
# File 'lib/syslog/jruby.rb', line 41

def alert(*args)
  Syslog.log(LOG_ALERT, *args)
end

#crit(*args) ⇒ Object



48
49
50
# File 'lib/syslog/jruby.rb', line 48

def crit(*args)
  Syslog.log(LOG_CRIT, *args)
end

#debug(*args) ⇒ Object



83
84
85
# File 'lib/syslog/jruby.rb', line 83

def debug(*args)
  syslog_write(LOG_DEBUG, *args)
end

#emerg(*args) ⇒ Object



34
35
36
# File 'lib/syslog/jruby.rb', line 34

def emerg(*args)
  Syslog.log(LOG_EMERG, *args)
end

#err(*args) ⇒ Object



55
56
57
# File 'lib/syslog/jruby.rb', line 55

def err(*args)
  Syslog.log(LOG_ERR, *args)
end

#info(*args) ⇒ Object



76
77
78
# File 'lib/syslog/jruby.rb', line 76

def info(*args)
  Syslog.log(LOG_INFO, *args)
end

#notice(*args) ⇒ Object



69
70
71
# File 'lib/syslog/jruby.rb', line 69

def notice(*args)
  Syslog.log(LOG_NOTICE, *args)
end

#warning(*args) ⇒ Object



62
63
64
# File 'lib/syslog/jruby.rb', line 62

def warning(*args)
  Syslog.log(LOG_WARNING, *args)
end