Santhoo,
I believe the problem is caused by the restart at midnight.
DailyRollingFileAppender will trigger the rollover when a log event has
a different date than the previous log event, but because of the restart
at midnight, the first log event can't compare with a previous log event
and just
Hello,
I am using the SMTPAppender to send mails in case of errors. I have a
requirement to have the number of error emails limited to e.g. 10 per
minute. Is this possible with any of the standard filters?
cheers,
dirk
-
To
Michael,
your script could just look at the 'last edit' time of the file, without
having to look at the name of the file.
dirk
On Monday 10 December 2007 11:26, Michael Erskine wrote:
Hi,
I have a requirement to delete logfiles older than a certain number of days
when using a
framework
Let me know if i am overlooking major disadvantages of this approach.
thanks again,
dirk
On Sunday 02 September 2007 22:13, dirk ooms wrote:
Hi,
i was using log4j 1.3, but i am moving back to 1.2.15 now. i often used
the {} symbols in my log statements, e.g. logger.info(blahblah
Hi,
i was using log4j 1.3, but i am moving back to 1.2.15 now. i often used the
{} symbols in my log statements, e.g. logger.info(blahblah {}, value);
1.2.x does not seem to understand this. is there any extension to 1.2.x that
supports this notation?
cheers,
dirk
Curt,
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 the log4j:configuration in
version 1.3, JoranConfigurator does not accept it.
I'm pretty sure that you are mistaken on the
DOM. Can you help me in fixing this issue.
Thanks in advance.
Regards
Rohan
Dirk Ooms [EMAIL PROTECTED] wrote:
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
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
Rohan,
you can use the wizard http://wizardforge.org/pc?action=showVersionid=28 to
generate a valid log4j.xml
for your goal
you just have to create a logegr in your code (Logger.getLogger()), no need for
the JoranConfigurator stuff.
dirk
Rohan,
have a look at the 'Default Initalization Procedure' at
http://logging.apache.org/log4j/docs/manual.html
it explains how log4j will find your config file.
dirk
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
to configure with joranconfigurator or any
other configurator.
Thanks in advance
Regards
Rohan
Dirk Ooms [EMAIL PROTECTED] wrote:
Rohan,
have a look at the 'Default Initalization Procedure' at
http://logging.apache.org/log4j/docs/manual.html it explains how log4j will
find your
program as follows:
JoranConfigurator jc = new JoranConfigurator();
jc.doConfigure(mLOG4JCONFIGFILE, LogManager.getLoggerRepository());
So can you let me kow how to configure with joranconfigurator or any
other
configurator.
Thanks in advance
Regards
Rohan
Dirk Ooms
On Wednesday 03 January 2007 22:02, venkat_74 wrote:
Hi all,
I am new to log4j and my application uses DailyRollingFileAppender with
daily rollback, will this configuration retain the files from previous
days. If so, how many I can have it at the max. What is the default
availability. Can I
Hello List,
i tried to start chainsaw with webstart
(http://logging.apache.org/log4j/docs/webstart/chainsaw/chainsawWebStart.jnlp),
but i received following error: Found unsigned entry in resource:
http://logging.apache.org/log4j/docs/webstart/chainsaw/lib/log4j-chainsaw-2.0alpha-1.jar;.
this
Maarten
On 12/28/06, dirk ooms [EMAIL PROTECTED] wrote:
Hello List,
i tried to start chainsaw with webstart
(
http://logging.apache.org/log4j/docs/webstart/chainsaw/chainsawWebStart.j
nlp ),
but i received following error: Found unsigned entry in resource:
http
Yes you can zip files when they are rolled over. Put a '.gz' extension in the
FileNamePattern.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
you can specify a threshold per appender, e.g.:
log4j.appender.logfile.Threshold=DEBUG
On Monday 26 June 2006 20:47, [EMAIL PROTECTED] wrote:
I have multiple appenders, and I would like for one (of this to have a
detailed log level (trace), and the other to just have a log level for
warnings
in log4j1.3, i do something like this to put the date in the filename
appender name=myAppender
class=org.apache.log4j.rolling.RollingFileAppender
param name=Threshold value=DEBUG/
rollingPolicy class=org.apache.log4j.rolling.TimeBasedRollingPolicy
param name=FileNamePattern
I asked this question a few weeks ago without success. I'll rephrase it.
I have an application that runs a couple of times per day. I configured it with
a RollingFileAppender with daily rollover. The problem is that if the
application is not running at midnight, the rollover does not happen. My
.
-Original Message-
From: Dirk Ooms [mailto:[EMAIL PROTECTED]
Sent: Monday, March 27, 2006 3:40 AM
To: log4j-user@logging.apache.org
Subject: TimeBasedRollingPolicy application restart
I asked this question a few weeks ago without success. I'll rephrase it.
I have an application
Hi,
I am using the RollingFileAppender and it is configured to rollover at
midnight. This works but i have the impression the rollover is not starting at
midnight, but at the first log event after midnight. Is this the expected
behavior?
cheers,
dirk
applying resetConfiguration to the LoggerRepository before reconfiguring will
resolve this.
dirk
On Tuesday 07 February 2006 22:02, DeSantis, MJ Mark @ IS (7179) wrote:
This is more of a just out of curiousity type question.
When I configure log4j in the code (using the JoranConfigurator)
i vaguely remember that there is a file .chainsaw/chainsaw-settings.properties
(or something like that) with a property configurationURL that can be used
for that purpose.
dirk
On Wednesday 14 December 2005 19:09, Mark wrote:
OK, so I see the example config file. How do I get that into
And what about the log4j.dtd which is still in the 1.3alpha6 distribution? Has
it any value?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
i am a bit puzzled on how i should do an apriori validation of a log4j.xml in
log4j1.3 (without applying it to a LoggerRepository).
can I still use the .dtd? but I am wondering whether the .dtd is still in sync
with what is happening in the JoranConfigurator, e.g. if i remember well the
25 matches
Mail list logo