The bug has been submitted here:<br><a href="http://jira.qos.ch/browse/LBCLASSIC-158">http://jira.qos.ch/browse/LBCLASSIC-158</a><br><br><div class="gmail_quote">On Thu, Oct 1, 2009 at 5:21 AM, Johan Bos <span dir="ltr">&lt;johan.bos@c6.eu&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">This kind of problem could happen if you have multiple web application<br>
loading the same logback library and obviously the same configuration file<br>
pointing to the same file.<br>
<br>
Both web applications would try to log to the same file at the same moment,<br>
which would cause messages to be append to each other.<br>
<br>
I think I got this problem, solved by either placing the logback libraries<br>
in each application (copying), using a different config file or by either<br>
setting up a context selector variable using JNDI, cf logback manual on the<br>
context selection.<br>
<br>
-----Message d&#39;origine-----<br>
De : <a href="mailto:logback-user-bounces@qos.ch">logback-user-bounces@qos.ch</a> [mailto:<a href="mailto:logback-user-bounces@qos.ch">logback-user-bounces@qos.ch</a>] De la<br>
part de Ceki Gulcu<br>
Envoyé : jeudi 1 octobre 2009 11:15<br>
À : logback users list<br>
Objet : Re: [logback-user] Messages from multiple senders interleaved on one<br>
line<br>
<div><div></div><div class="h5"><br>
<br>
Hello Michael,<br>
<br>
It&#39;s either a very serious bug in logback, or there is something else going<br>
on,<br>
such as another process writing to the same file. Could you please enter a<br>
bug<br>
report describing the problem? Mark the bug as critical.<br>
<br>
Is the duplication occurring in ConsoleAppener or in RollingFileAppender?<br>
Which<br>
version of logback is this?<br>
<br>
TIA,<br>
<br>
Michael Olson wrote:<br>
&gt; Hello all,<br>
&gt;<br>
&gt; I&#39;m new to logback, and I&#39;m trying out a configuration that is, more or<br>
&gt; less, a word-for-word transcription of an example configuration from the<br>
&gt; documentation; you can view the configuration here:<br>
&gt; <a href="http://logback.pastebin.com/m1a6f2875" target="_blank">http://logback.pastebin.com/m1a6f2875</a><br>
&gt;<br>
&gt; I&#39;m having problems where I&#39;m getting interleaved messages on a single<br>
&gt; line.  I don&#39;t believe this is expected behavior, and it certainly makes<br>
&gt; it harder to understand what&#39;s going on.  I&#39;ve tried searching the<br>
&gt; mailing list and bug list to no avail.  Here&#39;s an example from one log<br>
file:<br>
&gt; 2009-09-30 15:45:31,649 [Thread-5]   INFO         CalaisSubmitter -<br>
&gt; CalaisFeedSubmitter clean shutdown<br>
&gt; 2009-09-30 15:45:33,2302009-09-30 15:45:33,230 [ [Thread-15] INFO<br>
&gt; PostItemSubmitter - Shutdown aborted queue operation<br>
&gt; Thread-19]                           INFO       PostItemSubmitter -<br>
&gt; Shutdown aborted queue operation<br>
&gt; 2009-09-30 15:45:33,231 [2009-09-30 15:45:33,231Thread-17] [ INFO<br>
&gt; PostItemSubmitter - Shutdown aborted queue operation<br>
&gt; 2009-09-30 15:45:33,231 [2009-09-30 15:45:33,231Thread-17] [Thread-21]<br>
&gt; INFO       PostItemSubmitter - Shutdown aborted queue operation<br>
&gt; 2009-09-30 15:45:34,230 [main]       INFO                Eventweb - All<br>
&gt; stopped<br>
&gt;<br>
&gt; and here&#39;s an example from another log file:<br>
&gt; 2009-09-30 15:47:10,061 [Thread-5]   INFO         CalaisSubmitter -<br>
&gt; CalaisFeedSubmitter clean shutdown<br>
&gt; 2009-09-30 15:47:11,3782009-09-30 15:47:11,378 [ [2009-09-30<br>
&gt; 15:47:11,378 [Thread-15] INFO       PostItemSubmitter - Shutdown aborted<br>
&gt; queue operation<br>
&gt; 2009-09-30 15:47:11,3782009-09-30 15:47:11,378 [ [2009-09-30<br>
&gt; 15:47:11,378 [Thread-15]Thread-21]Thread-17] INFO<br>
&gt; PostItemSubmitter - Shutdown aborted queue operation<br>
&gt; 2009-09-30 15:47:11,3782009-09-30 15:47:11,378 [ [2009-09-30<br>
&gt; 15:47:11,378 [Thread-15]Thread-21] INFO       PostItemSubmitter -<br>
&gt; Shutdown aborted queue operation<br>
&gt; 2009-09-30 15:47:11,378 [Thread-19]  INFO       PostItemSubmitter -<br>
&gt; Shutdown aborted queue operation<br>
&gt; 2009-09-30 15:47:12,378 [main]       INFO                Eventweb - All<br>
&gt; stopped<br>
&gt;<br>
&gt; Can anyone tell me why I&#39;m getting interleaved messages, and what I<br>
&gt; might be able to do to prevent this from happening?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; - Michael<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Logback-user mailing list<br>
&gt; <a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>
&gt; <a href="http://qos.ch/mailman/listinfo/logback-user" target="_blank">http://qos.ch/mailman/listinfo/logback-user</a><br>
<br>
--<br>
Ceki Gülcü<br>
Logback: The reliable, generic, fast and flexible logging framework for<br>
Java.<br>
<a href="http://logback.qos.ch" target="_blank">http://logback.qos.ch</a><br>
_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>
<a href="http://qos.ch/mailman/listinfo/logback-user" target="_blank">http://qos.ch/mailman/listinfo/logback-user</a><br>
<br>
<br>
<br>
_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>
<a href="http://qos.ch/mailman/listinfo/logback-user" target="_blank">http://qos.ch/mailman/listinfo/logback-user</a><br>
</div></div></blockquote></div><br>