class Bosh::Monitor::Plugins::SyslogEventForwarder
Attributes
sys_logger[R]
Public Instance Methods
process(event)
click to toggle source
# File lib/bosh/monitor/plugins/syslog_event_forwarder.rb, line 19 def process(event) if event.kind_of?(Bosh::Monitor::Events::Alert) @sys_logger.info("[#{event.kind.to_s.upcase}] #{event.to_json}") end end
run()
click to toggle source
# File lib/bosh/monitor/plugins/syslog_event_forwarder.rb, line 14 def run @sys_logger = Syslog::Logger.new('bosh.hm') # keep programname in sync with syslog_event_forwarder.conf.erb logger.info("Syslog forwarder is running with programme name '#{Syslog::ident}'...") end