Method: Pigeon::Logger#thread_id
- Defined in:
- lib/pigeon/logger.rb
#thread_id ⇒ Object
Returns a sequential thread identifier which is human readable and much more concise than internal numbering system used.
6 7 8 9 |
# File 'lib/pigeon/logger.rb', line 6 def thread_id @threads ||= { } @threads[Thread.current.object_id] ||= @threads.length end |