<html><head><style><!--..hmmessage P{margin:0px;padding:0px}body.hmmessage{font-size: 10pt;font-family:Tahoma}--></style></head><body class='hmmessage'>If you instantiate a logger in a filter class you&#39;ll have the same problem. &nbsp;The message is telling you that you can&#39;t use a logger in part of Logback&#39;s init.<br><br>Sent from my Verizon Wireless Phone<br><br><div id="htc_header" style="">----- Reply message -----<br>From: &quot;BAKHTI Mohammed&quot; &lt;onlymed@hotmail.com&gt;<br>Date: Mon, Jul 4, 2011 3:31 am<br>Subject: [logback-user] Problème with Logback.XML<br>To: &lt;logback-user@qos.ch&gt;<br><br></div><div dir='ltr'>
<span id="result_box" lang="en"><span title="Click for alternate translations" class="hps">Hello,</span><br><br> <span title="Click for alternate translations" class="hps">I just made</span> <span title="Click for alternate translations" class="hps">an</span> <span title="Click for alternate translations" class="hps">API</span> <span title="Click for alternate translations" class="hps">abstraction</span> <span title="Click for alternate translations" class="hps">above</span> <span title="Click for alternate translations" class="hps">logback</span> <span title="Click for alternate translations" class="hps">in order to add</span> <span title="Click for alternate translations" class="hps">specific functions in this api i have</span><span title="Click for alternate translations" class="hps"></span> <span title="Click for alternate translations" class="hps">all logback functions</span> (juste overrided with no changes) <span title="Click for alternate translations" class="hps">and add</span> <span title="Click for alternate translations" class="hps">some other functions</span> <span title="Click for alternate translations" class="hps">(with</span> <span title="Click for alternate translations" class="hps">specific</span> <span title="Click for alternate translations" class="hps">signature</span><span title="Click for alternate translations">)</span><span title="Click for alternate translations"> :</span><span title="Click for alternate translations" class="hps"></span><br><br> <span title="Click for alternate translations" class="hps">I created&nbsp; then</span> <span title="Click for alternate translations" class="hps">a file</span> <span title="Click for alternate translations" class="hps">appender</span> and a JMS appender in <span title="Click for alternate translations" class="hps">logback.xml</span> <span title="Click for alternate translations" class="hps">(nothing special</span><span title="Click for alternate translations">)</span><br><br> <span title="Click for alternate translations" class="hps">I am using</span> <span title="Click for alternate translations" class="hps">activemq</span> <span title="Click for alternate translations" class="hps">for</span> <span title="Click for alternate translations" class="hps">jms</span> <span title="Click for alternate translations" class="hps">MOM</span><span title="Click for alternate translations">.</span><br><br> <span title="Click for alternate translations" class="hps">The problem is then : when a run a test class with some methodes invocation i see this message : <br><br></span></span>SLF4J: The following loggers will not work becasue they were created<br>
SLF4J: during the default configuration phase of the underlying logging system.<br>
SLF4J: See also <a rel="nofollow" href="http://www.slf4j.org/codes.html#substituteLogger" target="_blank">http://www.slf4j.org/codes.html#substituteLogger</a><br>
SLF4J: org.apache.activemq.ActiveMQPrefetchPolicy<br>
SLF4J: org.apache.activemq.jndi.ReadOnlyContext<br>
SLF4J: org.apache.activemq.transport.tcp.TcpTransportFactory<br>
SLF4J: org.apache.activemq.util.ServiceSupport<br><br>All user logs are logged as expected but i dont see any of activemq (or other framework) logs .<br><br>i have read the&nbsp; information in slf4j url but don't understund what they mean and how to correct this problem in logback .<br><br>Thanks for any help <br>                                               </div></body>
</html>