Class: Chef::SYSLOG::Handler
- Inherits:
-
Handler
- Object
- Handler
- Chef::SYSLOG::Handler
- Defined in:
- lib/syslog.rb
Instance Method Summary collapse
Instance Method Details
#initalize(server, port) ⇒ Object
7 8 9 10 |
# File 'lib/syslog.rb', line 7 def initalize(server, port) @server = server @port = port end |
#report ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/syslog.rb', line 12 def report if run_status.failed? logger = Syslogger.new("chef", Syslog::LOG_PID, Syslog::LOG_LOCAL7) logger.level = Logger::INFO logger.fatal formatted_exception end end |