Tuesday, August 17, 2010

Log4J tips

Add thread name to my log file; sometimes we want to know which thread is being executed, well, try this:
ConversionPattern=%d [%5p] [%t] %c{1}.%m%n

That's right just by adding "%t", you can see which thread is doing what.


No comments:

Post a Comment