Open nicobrevin opened 12 years ago
Don't see much activity here anymore, have you tried Semantic Logger? It has direct support for JRuby thread names, and also allows you to set your own thread names so that they show up correctly in the log files. Also logs JVM garbage collection events along with their duration.
if you haven't set Thread['name'](which sometimes you can't do nicely if you are working with third party libs), the thread name in the output comes out as #Thread:0x3b6c57b1
I've hacked around it with the following...
So it uses Thread[:name] at first, but falls back to the Java thread name if it isn't set. Could we add this in to log4r somehow?