Re: AW: Logging issue with logginf to seperate log files

2009-02-26 Thread dirk ooms
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

rate control of logging events

2008-11-27 Thread dirk ooms
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

Re: expiry of DailyRollingFileAppender old logs

2007-12-10 Thread dirk ooms
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

Re: 1.3 {} notation available in 1.2.x?

2007-09-04 Thread dirk ooms
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

1.3 {} notation available in 1.2.x?

2007-09-02 Thread dirk ooms
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

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-20 Thread dirk ooms
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

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-20 Thread dirk ooms
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

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-16 Thread Dirk Ooms
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

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread Dirk Ooms
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

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread Dirk Ooms
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

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread dirk ooms
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

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread dirk ooms
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

Re: log4j - Daily Rolling File Appenders

2007-01-03 Thread 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

chainsaw webstart

2006-12-28 Thread dirk ooms
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

Re: chainsaw webstart

2006-12-28 Thread dirk ooms
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

Re: RollingFileAppender that zips?

2006-11-02 Thread Dirk Ooms
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]

Re: How to set different levels per appender

2006-06-26 Thread dirk ooms
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

Re: Stuck with file format!!!

2006-05-11 Thread dirk ooms
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

TimeBasedRollingPolicy application restart

2006-03-27 Thread Dirk Ooms
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

Re: TimeBasedRollingPolicy application restart

2006-03-27 Thread dirk ooms
. -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

RollingFileAppender trigger to rollover

2006-03-01 Thread Dirk Ooms
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

Re: JoranConfigurator configuration of log4j

2006-02-07 Thread dirk ooms
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)

Re: how to load a receiver upon Chainsaw startup

2005-12-14 Thread dirk ooms
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

Re: log4j.xml validation

2005-12-13 Thread Dirk Ooms
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]

log4j.xml validation

2005-12-12 Thread Dirk Ooms
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