topfunky/hodel_3000_compliant_logger — pull request #9 by clayton-bell-agworld (2013-11-04 07:05:45+00:00)
Title: thread id obtained on each event to ensure it is accurate

caching the id doesn't always provide correct results (it assumes that
the app creates an instance of Hodel3000CompliantLogger per thread)

In jruby, the actual OS thread ID can be obtained from

JRuby.reference(Thread.current).native_thread.id

however Thread.curent.object_id is a sufficient proxy