At 14:03 09.09.2002 -0700, you wrote:
>Two JVMs here are NOT using the same log file to log into, all
>I'm using is the same log4j config file. Each application
>initializes the log4j in its own JVM and uses its own category.
>
>The problem seems to be that the log4j is opening all the
>category f
Two JVMs here are NOT using the same log file to log into, all
I'm using is the same log4j config file. Each application
initializes the log4j in its own JVM and uses its own category.
The problem seems to be that the log4j is opening all the
category files which appear in the config file and no
additivity has nothing to do with the problem.
At 13:40 09.09.2002 -0700, you wrote:
>have put it for appender also (and for bother appender and
>category) but still find the other file locking.
>Thank you.
>-Jik (log is as follows)
[snip]
--
Ceki
TCP implementations will follow a general pri
ements the additivity for appender A was null.
>
> Swami
>
> > -Original Message-
> > From: J IK [mailto:[EMAIL PROTECTED]]
> > Sent: September 9, 2002 3:39 PM
> > To: Log4J Users List
> > Subject: RE: multiple categories same config file
> >
>
At 11:01 09.09.2002 -0700, you wrote:
>Hi All:
>
>
>Now log4j is opening both the files aa.log and bb.log when i
>just instantiate the 'aa' appender in a JVM. This is locking the
>file 'bb.log' which is used by another application in a
>different JVM. This is causing rollover problems etc.
You ca
fighting :-)
> -Jik
>
> --- Swami Iyer <[EMAIL PROTECTED]> wrote:
> > Can you try and rename your appender to be different than the
> > category name,
> > also try log4j.warn=true and log4j.debug=true, it will show
> > during the
> > startup what log files
ami Iyer <[EMAIL PROTECTED]> wrote:
> Can you try and rename your appender to be different than the
> category name,
> also try log4j.warn=true and log4j.debug=true, it will show
> during the
> startup what log files are going to be used and so on.
>
> Swami
>
> &
September 9, 2002 3:12 PM
> To: Log4J Users List
> Subject: RE: multiple categories same config file
>
>
> made the changes still no help, when i start using the aa
> appender the bb.log file is getting locked. I should have put
> this before, am using log4j version 1.2.5
From: Swami Iyer [mailto:[EMAIL PROTECTED]]
> > Sent: September 9, 2002 2:54 PM
> > To: 'Log4J Users List'
> > Subject: RE: multiple categories same config file
> >
> >
> > Your root category says that WARN will appear in the
> console,
> > hence y
> > Sent: September 9, 2002 2:15 PM
> > To: Log4J Users List
> > Subject: RE: multiple categories same config file
> >
> >
> > Hi Swami:
> >
> > tried that too but it ended up not logging to the console, may
> > be I'm doing something wrong. t
Your root category says that WARN will appear in the console, hence your
debugging may not appear in the console.
Swami
> -Original Message-
> From: J IK [mailto:[EMAIL PROTECTED]]
> Sent: September 9, 2002 2:15 PM
> To: Log4J Users List
> Subject: RE: multiple categor
k using the additivity flag will avoid the log4j in
> > opening both the
> > files.
> >
> > Swami
> >
> > > -Original Message-
> > > From: J IK [mailto:[EMAIL PROTECTED]]
> > > Sent: September 9, 2002 2:01 PM
> > &
the additivity flag will avoid the log4j in
> opening both the
> files.
>
> Swami
>
> > -Original Message-
> > From: J IK [mailto:[EMAIL PROTECTED]]
> > Sent: September 9, 2002 2:01 PM
> > To: [EMAIL PROTECTED]
> > Subject: multiple categories s
I think using the additivity flag will avoid the log4j in opening both the
files.
Swami
> -Original Message-
> From: J IK [mailto:[EMAIL PROTECTED]]
> Sent: September 9, 2002 2:01 PM
> To: [EMAIL PROTECTED]
> Subject: multiple categories same config file
>
>
>
Hi All:
Following is my configuration file log4j.config:
log4j.rootCategory=WARN, Log2Console
log4j.appender.Log2Console=org.apache.log4j.ConsoleAppender
log4j.appender.Log2Console.Target=System.err
log4j.appender.Log2Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Log2Console.layo
15 matches
Mail list logo