Class: Cosmo::Logger::BaseFormatter

Inherits:
Logger::Formatter
  • Object
show all
Defined in:
lib/cosmo/logger.rb

Direct Known Subclasses

SimpleFormatter

Instance Method Summary collapse

Instance Method Details

#pidObject



35
36
37
# File 'lib/cosmo/logger.rb', line 35

def pid
  ::Process.pid
end

#tidObject



31
32
33
# File 'lib/cosmo/logger.rb', line 31

def tid
  (Thread.current.object_id ^ pid).to_s(36)
end