Note that there are some explanatory texts on larger screens.

plurals
  1. POIs Logback mature enough to replace log4j?
    primarykey
    data
    text
    <p>I have read similar questions on SO like <a href="https://stackoverflow.com/questions/178215/log4j-vs-logback">this</a> and <a href="https://stackoverflow.com/questions/178836/should-new-projects-use-logback-instead-of-log4j">this</a>. But they are about four years old!</p> <p>Also I have read <a href="http://logback.qos.ch/reasonsToSwitch.html" rel="nofollow noreferrer">this</a> logback page, which has some really good info on why to choose Logback over log4j.</p> <p>I am looking to implement a logging framework for a project with the following technology stack -</p> <ul> <li>Spring</li> <li>Hibernate</li> <li>Maven</li> <li>Tomcat</li> <li>Rest</li> </ul> <p>I have already decided to use slf4j as the facade, so this question is on whether to use slf4j + log4j or slf4j + logback (I know that logback natively uses slf4j).</p> <p>What I am looking for is following -</p> <ul> <li>Has anyone had an experience with Logback that would prove it to be not as mature or efficient as log4j?</li> <li>How does it fair as compared to log4j in a multi-threaded environment?</li> <li>Ability to replace tomcat-default jul logging with logback/log4j logging</li> <li>Ability to consolidate logging configuration into a common file for a maven multi-module project</li> <li>Logback claims it's 10 times faster than log4j, has anyone validated that claim? (as part of my research I do plan to run some tests to measure performance and will post back my results)</li> </ul> <p><strong>EDIT</strong>: I've read at many places (one of the answer below states this as well) that log4j is dead/deprecated. Contrary to that, log4j just released an <a href="http://logging.apache.org/log4j/2.0/index.html" rel="nofollow noreferrer">alpha version</a> of its 2.0 release. So I do not buy that argument.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload