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
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
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
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
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
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
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]
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/;
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
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,
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
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
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]
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
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.
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
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
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
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,
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
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
21 matches
Mail list logo