Setting Header for DailyRollingFileAppender

2007-11-15 Thread Satish Musunuru
Hi, How can I set the header for DailyRollingFileAppender programmatically? I see only getters for the header and footer, no setters in both the Layout and the PatternLayout classes. Thanks, Satish

Re: How to pick a specific log4j as well its properties file?

2007-11-15 Thread Jim the Standing Bear
Thank you Jake. Your detailed suggestions are very helpful as well as insightful. So the situation is pretty much like a jar-hell, and I must figure out the proper order to pipe jars into the classpath. It seems like XML properties file is the way to go. -- Jim On Nov 15, 2007 2:41 PM, Jacob K

Re: How to pick a specific log4j as well its properties file?

2007-11-15 Thread Jim the Standing Bear
That is a great suggestion. Thanks again, James. On Nov 15, 2007 2:05 PM, James A. N. Stauffer <[EMAIL PROTECTED]> wrote: > Libraries shouldn't include a log4j config file so hopefully few will have > that problem. You could use a log4j.xml to prevent the use of any > log4j.properties in a lib ja

Re: please help. everything logged twice

2007-11-15 Thread Jim the Standing Bear
Thanks James, I didn't know about the log4j.debug property. As it turned out, the app was also using cog-jglobus-1.4, which not only has an implementation of the log4j of its own, as well as its own log4j.properties file zipped in the jar! After I repackaged this jar, it worked like a charm!! Wow

Re: How to pick a specific log4j as well its properties file?

2007-11-15 Thread Jacob Kjome
First, developers of libraries that package the log4j library within their own jar should be admonished. It can only be harmful to users. Developers of libraries that package a Log4j config file in their own library should be alerted to the error of their ways (something less than "admonishm

Re: How to pick a specific log4j as well its properties file?

2007-11-15 Thread James A. N. Stauffer
Libraries shouldn't include a log4j config file so hopefully few will have that problem. You could use a log4j.xml to prevent the use of any log4j.properties in a lib jar. On Nov 15, 2007 12:57 PM, Jim the Standing Bear <[EMAIL PROTECTED]> wrote: > Hi all, > > From an earlier problem, I discover

Re: where can i see the log.Debug("somemessage") ???? message

2007-11-15 Thread Jacob Kjome
Did you also put commons-logging.jar (**NOT** commons-logging-api.jar) in WEB-INF/lib alonside log4j.jar? If you've done this and you still don't get logging, try adding to log4j.properties... log4j.debug=true Or, if log4j.properties isn't being picked up at all, you could try writing a l

How to pick a specific log4j as well its properties file?

2007-11-15 Thread Jim the Standing Bear
Hi all, >From an earlier problem, I discovered that my application wasn't using the log4j.properties I supplied. In fact, I am not even sure if it was using the log4j from log4j-1.2.13.jar that I supplied. This is because my app also uses cog-jglobus, which contains its own version of log4j. By

Re: please help. everything logged twice

2007-11-15 Thread James A. N. Stauffer
Is anything else configuring log4j also? Running with -Dlog4j.debug should help determine that. I would guess that if you changed your console appender to a file appender then the file would have the data that you want and the console would have that data without the dates. On Nov 15, 2007 9:59 A

Re: please help. everything logged twice

2007-11-15 Thread Jim the Standing Bear
Well, here comes the punch line: that WAS the entire log4j.properties file... and that is why I have been scratching my head for the past several days. > > [code] > > log4j.logger.com.mydomain.myapp=TRACE, myconsole > > > > log4j.appender.myconsole=org.apache.log4j.ConsoleAppender > > log4j.appe

Re: please help. everything logged twice

2007-11-15 Thread James A. N. Stauffer
It appears that something else is sending the data to the console also. Posting your whole log4j.properties might help us find the problem. On Nov 14, 2007 9:21 PM, Jim the Standing Bear <[EMAIL PROTECTED]> wrote: > Hi, > > I have been scratching my head trying to figure out why my application >