Class: Wurk::Logger::Formatters::WithoutTimestamp

Inherits:
Pretty
  • Object
show all
Defined in:
lib/wurk/logger.rb

Constant Summary

Constants inherited from Base

Base::SEVERITY_COLORS

Instance Method Summary collapse

Methods inherited from Base

#format_context, #tid

Instance Method Details

#call(severity, _time, _program_name, message) ⇒ Object



49
50
51
# File 'lib/wurk/logger.rb', line 49

def call(severity, _time, _program_name, message)
  "#{SEVERITY_COLORS[severity]} pid=#{::Process.pid} tid=#{tid}#{format_context}: #{message}\n"
end