Class: Shoryuken::Logging::Base

Inherits:
Logger::Formatter
  • Object
show all
Defined in:
lib/shoryuken/logging.rb

Direct Known Subclasses

Pretty, WithoutTimestamp

Instance Method Summary collapse

Instance Method Details

#contextObject



13
14
15
16
# File 'lib/shoryuken/logging.rb', line 13

def context
  c = Thread.current[:shoryuken_context]
  c ? " #{c}" : ''
end

#tidObject



9
10
11
# File 'lib/shoryuken/logging.rb', line 9

def tid
  Thread.current['shoryuken_tid'] ||= (Thread.current.object_id ^ ::Process.pid).to_s(36)
end