Re: multiple categories same config file

2002-09-09 Thread Ceki Gülcü
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

Re: multiple categories same config file

2002-09-09 Thread J IK
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

RE: multiple categories same config file

2002-09-09 Thread Ceki Gülcü
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

RE: multiple categories same config file

2002-09-09 Thread J IK
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 > > >

Re: multiple categories same config file

2002-09-09 Thread Ceki Gülcü
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

RE: multiple categories same config file

2002-09-09 Thread Swami Iyer
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

RE: multiple categories same config file

2002-09-09 Thread J IK
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 > > &

RE: multiple categories same config file

2002-09-09 Thread Swami Iyer
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

RE: multiple categories same config file

2002-09-09 Thread J IK
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

RE: multiple categories same config file

2002-09-09 Thread Swami Iyer
> > 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

RE: multiple categories same config file

2002-09-09 Thread Swami Iyer
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

RE: multiple categories same config file

2002-09-09 Thread Daniel Serodio
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 > > &

RE: multiple categories same config file

2002-09-09 Thread J IK
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

RE: multiple categories same config file

2002-09-09 Thread Swami Iyer
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 > > >

multiple categories same config file

2002-09-09 Thread J IK
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