On Dec 12, 2008, at 11:59 PM, Scott Deboy wrote:
Which logback features? Are they a part of SLF4j's API?
A combination. I needed Markers and I've added some minor stuff to the SLF4J extensions. What I really needed were the TurboFilters in Logback. Take a look at DynamicThresholdFilter (and note the authors names). Also, the stack trace support in Log4j was really awful. Curt recently improved it as best he can while still supporting ancient JDKs.
Also Log4j suffers from the same locking issues Logback did. The synchronized block in Category.callAppenders can be a huge bottleneck in certain circumstances. At a quess I'd bet https://issues.apache.org/activemq/browse/AMQ-1861and http://forums.sun.com/thread.jspa?threadID=5234863 are both related to this. Doing a google on "Log4j callAppenders lock" shows many hits of folks having locking issues. FWIW, Logback hasn't completely fixed the problem. Many Appenders are still completely synchronized.
Ralph