Re: Use category to limit by package name possible?

2007-01-16 Thread Lisa
Curt Arnold apache.org> writes: > The exception occurs since you specified that you wanted to use the > classes "javax.faces" and "org.apache.myfaces" as implementations of > the org.apache.log4j.Category contract. As previously noted, the > term "logger" has replaced "category" long t

Re: Use category to limit by package name possible?

2007-01-16 Thread Curt Arnold
On Jan 16, 2007, at 8:13 PM, Lisa wrote: Log4J startup gives the following error message: log4j:WARN Attribute value "com.presence" of type ID must be unique within the document. So how do you have two loggers that limit to the same package but different levels (debug,info)?

RE: Logging stops after hours working

2007-01-16 Thread Jacob Kjome
The behavior is curious. I would guess that some other library is configuring Log4j on it's own. This doesn't have to be via a config file. It could be just doing it programmatically. I take it you searched for both log4j.properties *and* log4j.xml. You only mentioned the former, so I th

Re: Use category to limit by package name possible?

2007-01-16 Thread Paul Smith
My advice: Don't split your logs into a Debug and Info log files. Not that log4j can't do that (see more below) but seriously consider that both the debug and info logs are even more useful when you have the context of them together. So my advice is to have one file appender, attached to

Re: Use category to limit by package name possible?

2007-01-16 Thread Lisa
James Stauffer gmail.com> writes: > > 1. -> > 2. Remove class attribute from category/logger. > 3. Define a node at the bottom. Thanks! but I still have a few problems. #3 node was not required. The appender stayed the same. the category (changed to logger) now looks like this: (note

RE: Logging stops after hours working

2007-01-16 Thread Cristian Jansenson
More to add to this case: - We are not using any special classloader, and there is no other log4j.properties hanging around that the IDE or grep could find. - We didn't extend the log4j code by writing Appenders or other classes. - We are only using the basic Logger methods (.error() .warn(), .i

Re: Use category to limit by package name possible?

2007-01-16 Thread James Stauffer
1. -> 2. Remove class attribute from category/logger. 3. Define a node at the bottom. On 1/16/07, Lisa <[EMAIL PROTECTED]> wrote: I have read all the documentation I could find on using an XML config file for Log4J (slim pickings) but can not figure out how to log INFO messages to a file that

Use category to limit by package name possible?

2007-01-16 Thread Lisa
I have read all the documentation I could find on using an XML config file for Log4J (slim pickings) but can not figure out how to log INFO messages to a file that come from a specific package. Any help would be appreciated. I have a file appender that I want to limit to: 1. info 2. by packag

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-16 Thread Surya Poola
Dirk, I have multiple instance of webapp applications .So currently i tried by saving my log4j.xml file in WEB-INF/classes folder. The file is been picked up, but i am getting the same warnings that i got earlier without any file output( Ihave switched on the debug . mode) log4j:WARN Cont

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-16 Thread Curt Arnold
On Jan 16, 2007, at 7:32 AM, Surya Poola wrote: Hi, I hope DOM Configurator doesnot support rollingfileappender (updated in1.3), because elements like rollingpolicy are not identified by DOM Configurator.I have checked in log4j.dtd wich allows only some specific elements like (error

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-16 Thread Dirk Ooms
Rohan, do you have multiple instances of tomcat or multiple webapps within tomcat? anyway, typically one puts the log4j.xml in the WEB-INF/classes of each webapp. it will then be picked up by JoranConfigurator (without doing anything explicit in your code, except for a getLogger()). Do not use t

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-16 Thread Surya Poola
Hi, I hope DOM Configurator doesnot support rollingfileappender(updated in1.3), because elements like rollingpolicy are not identified by DOM Configurator.I have checked in log4j.dtd wich allows only some specific elements like (errorHandler?,param*,layout?,filter*,appender-ref*)".I have go