class Rack::ActionLogger::EmitAdapter::LoggerAdapter
Public Class Methods
emit(hash)
click to toggle source
# File lib/rack/action_logger/emit_adapter/logger_adapter.rb, line 6 def self.emit(hash) hash = wrap(hash) if Rack::ActionLogger.configuration.pretty_print Rack::ActionLogger.logger.info(JSON.pretty_generate(hash)) else Rack::ActionLogger.logger.info(hash) end end