Class: Sidekiq::Logger::Formatters::Pretty

Inherits:
Base
  • Object
show all
Defined in:
lib/sidekiq/logger.rb

Direct Known Subclasses

WithoutTimestamp

Instance Method Summary collapse

Methods inherited from Base

#ctx, #format_context, #tid

Instance Method Details

#call(severity, time, program_name, message) ⇒ Object



103
104
105
# File 'lib/sidekiq/logger.rb', line 103

def call(severity, time, program_name, message)
  "#{time.utc.iso8601(3)} pid=#{::Process.pid} tid=#{tid}#{format_context} #{severity}: #{message}\n"
end