Module: ISPMonitor::Logging
- Defined in:
- lib/isp_monitor/logging.rb
Class Method Summary collapse
Class Method Details
.build_logger(config) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/isp_monitor/logging.rb', line 2 def self.build_logger(config) outputs = [ { type: :stdout } ] outputs << { type: :tcp, host: config.logstash_host, port: config.logstash_port } if config.logstash_host.present? LogStashLogger.new(type: :multi_delegator, outputs: outputs) end |
.notify_error(error) ⇒ Object
9 10 11 12 |
# File 'lib/isp_monitor/logging.rb', line 9 def self.notify_error(error) puts error.inspect puts error.backtrace end |