资 源 简 介
thread-logging-java is a library that implements per-thread logging.
The library was inspired by the ideas presented in Brian Goetz" ThreadLocal article
An email generated by threadlogging.log4j.SMTPAppender
```
[18 May 2009 00:28:02,852 PDT] INFO : Request processing time: 0.0010 seconds
[18 May 2009 00:28:02,852 PDT] INFO : another info message
[18 May 2009 00:28:02,852 PDT] ERROR: caught something
java.lang.NullPointerException
at foo.bar.AppServlet.service(AppServlet.java:27)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
at threadlogging.log4j.LoggingServletFilter.doFilter(LoggingServletFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servle