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 A
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 ther
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: L
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 confiden
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 runn
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
CONFIDENT
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.
log4j
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 lo
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]
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
toL
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
(edu.jhuapl.latency.GNCSTlaten
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, Y
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 th
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:
http://jakarta.apache.org/log4j/";
debug="true">
However I dont get the
Hi Ceki,
I dont actually get the internal logging output. The root element of the
properties is as follows:
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]>
Reply-To: "Log4J Users Lis
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
format
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
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 entri
18 matches
Mail list logo