<div dir="ltr">Hi ,<br><br><br>I&#39;m trying to make my web application which is using log4j , use the slf4j api or the other way around ( the log4j Logger to log messages through sfl4j ).<br><br>As far as yet i have not managed to make either work .<br>
<br>My questions are liste below :<br><br><br>1. When i try replacing the log4j.jar file  <i>log4j-over-slf4j.jar&nbsp; </i><i>( which in turn provides the replacement classes )&nbsp; , the JBOSS AS </i>complains about a <br><br>&quot;LinkageError&quot; between a previously loaded Class ( org/apache/log4j/Logger ) . This is quite normal , because JBoss loads it&#39;s bundled log4j.jar files . The question is how am I supposed to use slf4j with JBoss ( i couldn&#39;t stop JBoss from loading log4j ,unless I specify in it&#39;s classloader that log4j shouldn&#39;t be loaded , but then i got the &quot;noClassDefFoundError&quot; for org/apache/log4j/Logger , in the slf4j stackTrace ) .<br>
<br>2. When I try using the <em>slf4j-log4j12-1.5.2 file&nbsp; </em><br><br>Output ( which resides in the log4j files ) for &quot;fine&quot; and &quot;finest&quot; levels is not generated . Just DEBUG and WARN .<br><br><br>Thanks for reading ,<br>
<br>Any ideas and/or suggestions would be appreciated .<br><br>Victor<br><br><br><i><br><br></i><br><br>the problem is that after is replace the <br></div>