Class: Fuey::Log
- Inherits:
-
Object
- Object
- Fuey::Log
- Defined in:
- lib/fuey_client/fuey/log.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#call(name, started, finished, unique_id, payload) ⇒ Object
Handles ActiveSupport::Notifications.
Class Method Details
.alert(message) ⇒ Object
10 11 12 |
# File 'lib/fuey_client/fuey/log.rb', line 10 def self.alert() logger.error "[#{Config::Fuey.title}] #{message}" end |
.write(message) ⇒ Object
6 7 8 |
# File 'lib/fuey_client/fuey/log.rb', line 6 def self.write() logger.info "[#{Config::Fuey.title}] #{message}" end |
Instance Method Details
#call(name, started, finished, unique_id, payload) ⇒ Object
Handles ActiveSupport::Notifications
15 16 17 |
# File 'lib/fuey_client/fuey/log.rb', line 15 def call(name, started, finished, unique_id, payload) Fuey::Log.write %([#{name}] Completed in #{finished - started} seconds. #{payload}) end |