Antw: setting watch period in settings or config

2002-06-26 Thread Frank-Olaf Lohmann
I have written a wrapper class that implements Configurator that wraps ConfigureAndWatch. Than used the DefaultInit method described in http://jakarta.apache.org/log4j/docs/manual.html#defaultInit I have also introduced a property so I am able to set the watch time at start time. Not that

Pb RollingFileAppender

2002-06-26 Thread François BARBE
Hi all, I try to use a RollingFileAppender but it doesn't work I want to roll over 3 files and to have 1024KB for the max size. Here the configuration I use: appender name=MediaFwk class=org.apache.log4j.FileAppender param name=MaxFileSize value=1024KB / param name=MaxBackupIndex

Problems with SMTPAppender

2002-06-26 Thread Kn, Guruprasad (MED)
Hi I am using the SMTPAppender and I face the following problem. I have written my own TriggeringEvaluator which restricts the number of mail that is sent within a particular period as well as based on the Level(which anyway the default evaluator also does). However I notice a strange problem The

Re: Pb RollingFileAppender

2002-06-26 Thread Ceki Gülcü
It is normal if the size of the files is not exactly 1024KB. Keep in mind that the last appended logging event is not truncated. At 09:34 26.06.2002 +0200, François BARBE wrote: Hi all, I try to use a RollingFileAppender but it doesn't work I want to roll over 3 files and to have 1024KB

Re: Problems with SMTPAppender

2002-06-26 Thread Ceki Gülcü
The triggering evaluator evaluates whether an email message should be sent or not. It does not influence whether an event is put on the cyclic buffer or not. If you want only ERROR messages or above, then you can set the Threshold of the SMTPAppender. At 13:35 26.06.2002 +0530, Kn,

RE: Problems with SMTPAppender

2002-06-26 Thread Kn, Guruprasad (MED)
Thanks a lot Ceki. How do I set the Threshold of the SMTPAppender. Are you referring to BufferSize? Also, I noticed that the problem I specified goes away when I set the BufferSize to 1, but I also lost a few messages in the bargain. Can you please let me know why this happens? Is it an

Re: Antw: setting watch period in settings or config

2002-06-26 Thread Frank-Olaf Lohmann
Mark, as Ceki wrote you are the leader of the new ConfigWatchdog package and you might be interested in what I have done to solve my current needs on that topic. What I have read about ConfigWatchdog my solution is somewhat and interim one but anyway find what I have coded attached. If you

Re[5]: stopping logging after removing context in Tomcat prob lem...

2002-06-26 Thread Jacob Kjome
Hello Ceki, I created a ServletContextListener and can now successfully call LogManager.shutdown() at context shutdown. The Javadoc doesn't have much to say about this method. What exactly does it shut down because the Log4j jar file is still reported as a being in use so my ant clean target

RE: Antw: setting watch period in settings or config

2002-06-26 Thread Mark Womack
Frank-Olaf, Thank you for the code. It is rather clever wrapping the whole thing up in your own configurator class like that, and a clean solution for current version 1.2.X. I would be interested in any comments you may have about the new ConfigWatchdog design. I don't know if you have been

RE: Re[5]: stopping logging after removing context in Tomcat prob lem...

2002-06-26 Thread Swami Iyer
Jake, If the shutdown did not work for you, then it could be because there is an instance of log4j class object residing in the JVM. I think it is because the FileWatchdog extends thread instead of implementing the Runnable. When a class extends Thread and if the class members or used then the

LocationInfo and Logging wrappers

2002-06-26 Thread Ebersole, Steven
I know all the arguments about obtaining LocationInfo being slow. That being said, I am looking at using wrapper classes around log4j Loggers (sort of similiar to what jakarta commons does). We find the LocationInfo invaluable in most logging cases for their debug/investagation value.

RE: LocationInfo and Logging wrappers

2002-06-26 Thread Mark Womack
Steve, If you are creating a wrapper and you want the correct location info, then you just need to use the correct value for the caller's FQCN (fully qualified class name). Something like this: public class MyWrapper { ... private static String FQCN = MyWrapper.class.getName(); ...

RE: How are people using Chainsaw/LogFactor5?

2002-06-26 Thread Mark Womack
As promised, here is my Wednesday note. I have some modifications that allow the current Chainsaw to initiate connections to SocketHubAppenders. Because they are preliminary and use at your own risk I don't want to generally release them until I get more testing and feedback. BUT, if you are

RE: LocationInfo and Logging wrappers

2002-06-26 Thread Ebersole, Steven
Sweet, thats perfect. Thanks Steve Ebersole IT Integration Engineer Vignette Corporation 512.741.4195 Visit http://www.vignette.com -Original Message- From: Mark Womack [mailto:[EMAIL

Re: again multiple components using log4j causes problems

2002-06-26 Thread Adrian Brock
Answers in line. Regards, Adrian From: Roland Berger [EMAIL PROTECTED] To: Log4J Users List [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: again multiple components using log4j causes problems Date: Wed, 26 Jun 2002 12:05:00 +0200 Hi all I have some questions related to Repositories for

Re: again multiple components using log4j causes problems

2002-06-26 Thread Ceki Gülcü
Adrian, You might want to have a look at http://qos.ch/containers/sc.html (It's still work in progress) At 20:55 26.06.2002 +0100, Adrian Brock wrote: Answers in line. Regards, Adrian From: Roland Berger [EMAIL PROTECTED] To: Log4J Users List [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: