logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hugo Villeneuve <hugo.villene...@gmail.com>
Subject Re: RollingFileAppender: Using log4j in 2 separate classpath while logging in a single file.
Date Sat, 12 Feb 2011 04:19:57 GMT
Hello Curt

I read this bug report before. It is about the 2 separate Process accessing
the same file. My problem is when log4j is in 2 separate classloader and
writing in the same File. Do you know if bug report also apply to my
problem?

When running in 2 separate classpath on a single jvm, they share the same
java.io. In the past, I was able to write in the same file with log4j in
separate CL.

Let me know if you know any issues regarding this.

Thank you for your time.


On Fri, Feb 11, 2011 at 12:51 AM, Curt Arnold <carnold@apache.org> wrote:

>
> On Feb 10, 2011, at 12:48 PM, Hugo Villeneuve wrote:
>
> > Hello
> >
> >
> >
> > I have a different behaviour when I use DailyRollingFileAppender vs the
> > RollingFileAppender.
> >
> >
> >
> > My setup is the following: Running in WAS (on AIX 6.1), I have 2 separate
> > WebApplication. Each have a Log4j Instance in their isolated classpath.
> Both
> > WebApp are configured to use a DailyRollingFileAppender to log in the
> SAME
> > file.  All this works fine (I guess under the hood, the JVM java IO are
> > shared across all classpath).
> >
> >
> >
> > But the same configuration bring bizzard behaviour when switching to
> > RollingFileAppender + TimeBasedRollingPolicy. With the
> RollingFileAppender,
> > now I have duplicate content : Some log information is going  in the
> today’s
> > log and the same content goes in yesterdays logs.
> >
> >
> >
> > I need advice:
> >
> > 1) My first reflex is to switch back to the DailyRollingFileAppender. Can
> > someone give me some details on the issues with this Appender.
> >
> > 2) How can I have 2 Separate Log4j classpath, both logging in the same
> file?
> >
>
>
> On question 2, see bug report
> https://issues.apache.org/bugzilla/show_bug.cgi?id=48704.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


-- 
------------------------------
Hugo Villeneuve B.Ing.

Tél.: (514) 382-5164
hugo.villeneuve@gmail.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message