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 co

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 uns

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 DailyRollin

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.

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: Logger name in the log entry

2007-04-23 Thread dirk ooms
On Monday 23 April 2007 22:16, Cheung, Quinn wrote: > I'm afraid that doesn't work. As I mentioned in the original mail, I don't > want the class name. I want the name (identifier) of the logger. In my > case I'm not using the class name in the call to Logger.getLogger(), > therefore the name of

Re: new wizards to generate log4j.xml files

2007-04-06 Thread dirk ooms
Jake, thanks for the suggestion. i've added an item to the 'External Resources' section of the wiki. cheers, dirk On Friday 06 April 2007 06:33, Jacob Kjome wrote: > Excellent. I just tried the 1.3 version. Very slick! You might > want to put references to these out on the Wiki > > http:

new wizards to generate log4j.xml files

2007-04-05 Thread dirk ooms
Hello, i created 2 new wizards that generate log4j.xml files (logging to file, console, socket and email + support for multiple loggers). for log4j 1.2.x: http://wizardforge.org/pc?action=showVersion&id=65 for log4j 1.3: http://wizardforge.org/pc?action=showVersion&id=71 enjoy, dirk -

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

2007-01-20 Thread dirk ooms
ogs/a.log.%d{-MM)"/> MM) => MM} > > > > > > > > > > > and i just given the following stements in my code: > logger=Logger.getLogger (Classname.class); > logger.info("Perormance log Classname"); > > is

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 in > > version 1.3, JoranConfigurator does not accept it. > > I'm pretty sure that you are mistaken on the lack of supp

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 t

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

2007-01-15 Thread dirk ooms
> > > DOMConfigurator.configure(mLOG4JCONFIGFILE); > > > where mLOG4JCONFIGFILE was the property where i mentioned the location > > > of > > > > xml file. > > > > > But in 1.3 alpha-8,DOMConfigurator is depracated. > > > > > > So

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

2007-01-15 Thread dirk ooms
rRepository()); > > So can you let me kow how 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 Init

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 c

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=showVersion&id=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: 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

Re: chainsaw webstart

2006-12-28 Thread dirk ooms
ustom java web start settings > > 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 > >nl

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";. thi

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 > warning

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 On Thursday 11 May 2006 15:21, Kailash KN wrote: > Hi, > I would like to have my Debug and Info messages into Debug.log and Info.log > respectively, this works fine, but now i would

Re: TimeBasedRollingPolicy & application restart

2006-03-27 Thread dirk ooms
ion would help. > > Cheers, > Philip. > > -----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 qu

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

RollingFileAppender behavior after app restart

2006-03-01 Thread Dirk Ooms
Hi, Another question on the RollingFileAppender. In the case that daily rolling is applied and the application crashes at 23:59 and is started again at 00:01, the RollingFileAppender does not do a rollover and continues logging to the log file of the previous day. Is this the expected behavior?

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 Chain

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 .d