<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<br>Thanks for the replay : <br><br>so how can i deal with this ? <br><br>In slf4j they said : <br>The only way to obtain output from the listed loggers, is to
    isolate the components invoking these loggers and to exclude them
    from the default configuration. Both logback and log4j allow
    multi-step configuration. It follows that the problematic
    components should be configured in a second step separate from
    default configuration.<br><br>But i don't figure how ? what really i need to do.<br><br>Thansk again for any help <br><br><br><div><hr id="stopSpelling">To: onlymed@hotmail.com; logback-user@qos.ch<br>From: djt69@comcast.net<br>Subject: Re: [logback-user] Problème with Logback.XML<br>Date: Mon, 4 Jul 2011 08:52:24 -0400<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML"><style>
.ExternalClass .ecx.hmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

</style>If you instantiate a logger in a filter class you'll have the same problem. &nbsp;The message is telling you that you can't use a logger in part of Logback's init.<br><br>Sent from my Verizon Wireless Phone<br><br><div id="ecxhtc_header" style="">----- Reply message -----<br>From: "BAKHTI Mohammed" &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="ecxresult_box" lang="en"><span title="Click for alternate translations" class="ecxhps">Hello,</span><br><br> <span title="Click for alternate translations" class="ecxhps">I just made</span> <span title="Click for alternate translations" class="ecxhps">an</span> <span title="Click for alternate translations" class="ecxhps">API</span> <span title="Click for alternate translations" class="ecxhps">abstraction</span> <span title="Click for alternate translations" class="ecxhps">above</span> <span title="Click for alternate translations" class="ecxhps">logback</span> <span title="Click for alternate translations" class="ecxhps">in order to add</span> <span title="Click for alternate translations" class="ecxhps">specific functions in this api i have</span><span title="Click for alternate translations" class="ecxhps"></span> <span title="Click for alternate translations" class="ecxhps">all logback functions</span> (juste overrided with no changes) <span title="Click for alternate translations" class="ecxhps">and add</span> <span title="Click for alternate translations" class="ecxhps">some other functions</span> <span title="Click for alternate translations" class="ecxhps">(with</span> <span title="Click for alternate translations" class="ecxhps">specific</span> <span title="Click for alternate translations" class="ecxhps">signature</span><span title="Click for alternate translations">)</span><span title="Click for alternate translations"> :</span><span title="Click for alternate translations" class="ecxhps"></span><br><br> <span title="Click for alternate translations" class="ecxhps">I created&nbsp; then</span> <span title="Click for alternate translations" class="ecxhps">a file</span> <span title="Click for alternate translations" class="ecxhps">appender</span> and a JMS appender in <span title="Click for alternate translations" class="ecxhps">logback.xml</span> <span title="Click for alternate translations" class="ecxhps">(nothing special</span><span title="Click for alternate translations">)</span><br><br> <span title="Click for alternate translations" class="ecxhps">I am using</span> <span title="Click for alternate translations" class="ecxhps">activemq</span> <span title="Click for alternate translations" class="ecxhps">for</span> <span title="Click for alternate translations" class="ecxhps">jms</span> <span title="Click for alternate translations" class="ecxhps">MOM</span><span title="Click for alternate translations">.</span><br><br> <span title="Click for alternate translations" class="ecxhps">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></div>                                               </div></body>
</html>