Class: WarningSigns::Behavior::Log

Inherits:
Base
  • Object
show all
Defined in:
lib/warning_signs/behavior/log.rb

Instance Attribute Summary

Attributes inherited from Base

#backtrace, #message, #message_formatter

Instance Method Summary collapse

Methods inherited from Base

for, #formatted_message, #initialize

Constructor Details

This class inherits a constructor from WarningSigns::Behavior::Base

Instance Method Details

#emitObject



4
5
6
# File 'lib/warning_signs/behavior/log.rb', line 4

def emit
  formatted_message.each { Rails.logger.warn(_1) }
end