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


137
138
139
# File 'lib/sidekiq/logger.rb', line 137

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