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"><johan.bos@c6.eu></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'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'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>
> Hello all,<br>
><br>
> I'm new to logback, and I'm trying out a configuration that is, more or<br>
> less, a word-for-word transcription of an example configuration from the<br>
> documentation; you can view the configuration here:<br>
> <a href="http://logback.pastebin.com/m1a6f2875" target="_blank">http://logback.pastebin.com/m1a6f2875</a><br>
><br>
> I'm having problems where I'm getting interleaved messages on a single<br>
> line. I don't believe this is expected behavior, and it certainly makes<br>
> it harder to understand what's going on. I've tried searching the<br>
> mailing list and bug list to no avail. Here's an example from one log<br>
file:<br>
> 2009-09-30 15:45:31,649 [Thread-5] INFO CalaisSubmitter -<br>
> CalaisFeedSubmitter clean shutdown<br>
> 2009-09-30 15:45:33,2302009-09-30 15:45:33,230 [ [Thread-15] INFO<br>
> PostItemSubmitter - Shutdown aborted queue operation<br>
> Thread-19] INFO PostItemSubmitter -<br>
> Shutdown aborted queue operation<br>
> 2009-09-30 15:45:33,231 [2009-09-30 15:45:33,231Thread-17] [ INFO<br>
> PostItemSubmitter - Shutdown aborted queue operation<br>
> 2009-09-30 15:45:33,231 [2009-09-30 15:45:33,231Thread-17] [Thread-21]<br>
> INFO PostItemSubmitter - Shutdown aborted queue operation<br>
> 2009-09-30 15:45:34,230 [main] INFO Eventweb - All<br>
> stopped<br>
><br>
> and here's an example from another log file:<br>
> 2009-09-30 15:47:10,061 [Thread-5] INFO CalaisSubmitter -<br>
> CalaisFeedSubmitter clean shutdown<br>
> 2009-09-30 15:47:11,3782009-09-30 15:47:11,378 [ [2009-09-30<br>
> 15:47:11,378 [Thread-15] INFO PostItemSubmitter - Shutdown aborted<br>
> queue operation<br>
> 2009-09-30 15:47:11,3782009-09-30 15:47:11,378 [ [2009-09-30<br>
> 15:47:11,378 [Thread-15]Thread-21]Thread-17] INFO<br>
> PostItemSubmitter - Shutdown aborted queue operation<br>
> 2009-09-30 15:47:11,3782009-09-30 15:47:11,378 [ [2009-09-30<br>
> 15:47:11,378 [Thread-15]Thread-21] INFO PostItemSubmitter -<br>
> Shutdown aborted queue operation<br>
> 2009-09-30 15:47:11,378 [Thread-19] INFO PostItemSubmitter -<br>
> Shutdown aborted queue operation<br>
> 2009-09-30 15:47:12,378 [main] INFO Eventweb - All<br>
> stopped<br>
><br>
> Can anyone tell me why I'm getting interleaved messages, and what I<br>
> might be able to do to prevent this from happening?<br>
><br>
> Thanks,<br>
> - Michael<br>
><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>
<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>