Module: EurekaBot::Notification
- Defined in:
- lib/eureka_bot/notifications.rb
Class Method Summary collapse
Class Method Details
.log_notification(severity = ::Logger::DEBUG, name, started, finished, id, payload) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/eureka_bot/notifications.rb', line 2 def self.log_notification(severity=::Logger::DEBUG, name, started, finished, id, payload) EurekaBot.logger.add( severity, { name: name, execution_time: finished - started, started: started, finished: finished, id: id, payload: payload }.to_json ) end |