Adding an abstraction level

2003-10-03 Thread Jitesh_Arya
Hi, this is my first mail to this mailing list and its not been long since I subscribed to it. So, please forgive if I sound really stupid putting forth my question(s). What we have done is we have added another level of abstraction between the application (some web app) developer and

RE: Adding an abstraction level

2003-10-03 Thread Jain, Siddharth (ODC - Satyam)
Hi Jitesh, I really do not think this would help you, since there is a property known as threshold in log4j, which specifies the minimum logging level, thereby, if you want that in certain deployment scenarios, or for certain appenders, messages should be logged above a certain level, then just

Infinite backups in rollingfiel appender.

2003-10-03 Thread Jitesh_Arya
Is it possible to have an infinite number of backups of logs created (say through rollingfile appender)? I mean, I just don't want to have any kind of limits. If there is any way then please let me know. Thanks in advance. Regards, Jitesh, SETLabs

log4j using appender but not specified pattern

2003-10-03 Thread tom ONeill
Hi all, I was wondering if anyone could give me some ideas on what might be causing a small problem that I have. In my log4j properties file (XML format) I have set up a particular appender that writes to a file. I have also specified a particular Pattern for the appender. Now the logging

RE: Chaining

2003-10-03 Thread David Liles
What is NDC? -Original Message- From: Paul Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:59 PM To: Log4J Users List Subject: Re: Chaining This is where the NDC would be useful. In Class 2: NDC.push(Class 2); In Class 1: NDC.push(Class 1); Then when you are

Re: log4j using appender but not specified pattern

2003-10-03 Thread Ceki Gülcü
Tom, The configuration directives look good. What does the log4j internal logging output say? At 08:36 AM 10/3/2003 +, tom ONeill wrote: Hi all, I was wondering if anyone could give me some ideas on what might be causing a small problem that I have. In my log4j properties file (XML

Re: log4j using appender but not specified pattern

2003-10-03 Thread tom ONeill
Hi Ceki, I dont actually get the internal logging output. The root element of the properties is as follows: log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; debug=true However I dont get the debug output so Im none the wiser there Tom From: Ceki Gülcü [EMAIL PROTECTED]

Re: log4j using appender but not specified pattern

2003-10-03 Thread Ceki Gülcü
Hi Tom, This may indicate that a different config file is in use. At 11:43 AM 10/3/2003 +, tom ONeill wrote: Hi Ceki, I dont actually get the internal logging output. The root element of the properties is as follows: log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/;

RE: Adding an abstraction level

2003-10-03 Thread Shapira, Yoav
Howdy, Not quite. Using isEnabledFor(Level l), e.g. isDebugEnabled() around logger.debug statements can significantly reduce logging overhead. You should read the log4j manual on this issue, as it contains a more complete explanation and benchmarks. As for your level of abstraction, which on

RE: Adding an abstraction level

2003-10-03 Thread Lutz Michael
One other thing I would strongly encourage, purchase Ceki's book and read the section about wrapping Log4j. It is something that is encouraged, however Ceki strongly recommends not sub-classing logger. Use aggregation, as he describes in his book. -Original Message- From: Shapira,

log4j xml configuration

2003-10-03 Thread jeffrey_chavis
I am having problems getting log4j to configure from an XML file. When I use the xml file shown below, i get the following warning in java (1.4.1_02). Note: When I use a non-XML properties file it works just fine. log4j:WARN No appenders could be found for logger

RE: log4j using appender but not specified pattern

2003-10-03 Thread Mock, Jeffrey
Tom, I'm wondering if the custom trace level 'OurLogLevel' overrides all of the necessary methods in order to accurately identify trace as a valid Level. I experience the same problem you are having when I attempted to add a custom level. Does the OurLogLevel class have 'overrides' for the

RE: Chaining

2003-10-03 Thread Jacob Kjome
At 04:03 AM 10/3/2003 -0500, you wrote: What is NDC? http://nagoya.apache.org/wiki/apachewiki.cgi?Log4JProjectPages/NDCvsMDC Jake - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: log4j xml configuration

2003-10-03 Thread Jacob Kjome
At 03:43 PM 10/3/2003 +, you wrote: I am having problems getting log4j to configure from an XML file. When I use the xml file shown below, i get the following warning in java (1.4.1_02). Note: When I use a non-XML properties file it works just fine. log4j:WARN No appenders could be found for

Re: log4j xml configuration

2003-10-03 Thread Ceki Gülcü
At 12:11 PM 10/3/2003 -0500, you wrote: At 03:43 PM 10/3/2003 +, you wrote: I am having problems getting log4j to configure from an XML file. When I use the xml file shown below, i get the following warning in java (1.4.1_02). Note: When I use a non-XML properties file it works just fine.

org.apache.log4j.DailyRollingFileAppender

2003-10-03 Thread Clare . Myers
My java application running on AIX uses the DailyRollingFileAppender. Every so often, the roll-over does not occur at midnight, but later. Perhaps even a day later. Has anyone experienced this problem? Thanks! Clare H. Myers Application Developer Advisor Anthem - AMMS (513) 336-5472

RE: org.apache.log4j.DailyRollingFileAppender

2003-10-03 Thread Shapira, Yoav
Howdy, Yes. Search the archives. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 3:00 PM To: [EMAIL PROTECTED] Subject: org.apache.log4j.DailyRollingFileAppender My java application running on

org.apache.log4j.Logger

2003-10-03 Thread Lummis, Patrick J
Hi, I'm trying to understand the hierarchy in log4j. If I do the following: Logger x = Logger.getLogger(com.apples) Logger y = Logger.getLogger(com.oranges) Will I get references to two distinct Logger objects? Patrick Lummis This message (including any attachments) may contain

RE: org.apache.log4j.Logger

2003-10-03 Thread Shapira, Yoav
Howdy, Yes. The name is a unique identifier for a logger instance (within a loger repository). Logger.getLogger(com); Logger.getLogger(com.foo); Logger.getLogger(com.bar); All return different Logger instances. Yoav Shapira Millennium ChemInformatics -Original Message- From: Lummis,

Re: log4j xml configuration

2003-10-03 Thread jeffrey_chavis
OK, I added a file named log4j.xml to a directory in the classpath and this works wonderfully. The next question is I want to use the PropertyConfigurator to load a named config file. When I pass the PropertyConfigurator a non-xml file it works, but if I pass it an xml file it does not. Is

RE: org.apache.log4j.DailyRollingFileAppender

2003-10-03 Thread Clare . Myers
I found alot of things about how to get the DailyRollingFileAppender to roll at a scheduled time instead of when a record is written. The problem that I am having is that the rollover is not happening when a record is written after the date changes. Thanks! Clare H. Myers Application Developer