Class: Shoryuken::Logging::Base
- Inherits:
-
Logger::Formatter
- Object
- Logger::Formatter
- Shoryuken::Logging::Base
- Defined in:
- lib/shoryuken/logging.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#context ⇒ Object
13 14 15 16 |
# File 'lib/shoryuken/logging.rb', line 13 def context c = Thread.current[:shoryuken_context] c ? " #{c}" : '' end |
#tid ⇒ Object
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 |