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

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

Direct Known Subclasses

WithoutTimestamp

Constant Summary

Constants inherited from Base

Base::COLORS

Instance Method Summary collapse

Methods inherited from Base

#format_context, #tid

Instance Method Details

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



53
54
55
# File 'lib/sidekiq/logger.rb', line 53

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