Re: How to log specific category to specific file ??

2002-09-23 Thread mschilli1
In a message dated Tue, 24 Sep 2002 1:36:43 AM Eastern Standard Time, [EMAIL PROTECTED] writes: >Given 3 categories "category1", "category2" and "SomeOther" how do I set up a >log4j property file to >only log messages of "category2" ? >Are wildcards possible to e.g. only log "category*" >bu

How to log specific category to specific file ??

2002-09-23 Thread sschloesser
Hi, sorry, this has already been posted but no-one seemed to be able to help me. A pointer to some docu would be fine for me - I have read the standard stuff and got it working too, it's great! Given 3 categories "category1", "category2" and "SomeOther" how do I set up a log4j property fil

Re: log4j.jar locked by Tomcat even after remove/undeploy....

2002-09-23 Thread Ceki Gülcü
Are you using NTEventLogAppender? At 20:31 23.09.2002 -0500, you wrote: >Can someone in-the-know please comment on this? > >This is my last major build problem. It really gets in the way because if >I test my app in Tomcat (haven't tried other servers) and then need to >shut the app down and

log4j.ignoreTCL in 1.2.6

2002-09-23 Thread pyin
I tried to set this system property to get around the error "FileAppender is not assignable to Appender" when log4j.jar is loaded by mutliple class loaders. However, it didn't work. I included the following line first in the properties file: log4j.ignoreTCL = true I tried to set the property u

Re: log4j.jar locked by Tomcat even after remove/undeploy....

2002-09-23 Thread Jacob Kjome
Can someone in-the-know please comment on this? This is my last major build problem. It really gets in the way because if I test my app in Tomcat (haven't tried other servers) and then need to shut the app down and rebuild after making some changes, I can't clean up the build because log4j.j

RE: filtering messages by the MDC

2002-09-23 Thread Mark Womack
Shorn, If you look in the current log4j cvs (see http://jakarta.apache.org/site/cvsindex.html), you will find a package named org.apache.log4j.filters. This package contains a current set of "useful" filters that have been implemented for version 1.3; there are more to be written yet. You will

filtering messages by the MDC

2002-09-23 Thread Shorn Tolley
Hi folks, I know there is a LevelMatchFilter, which can be used to only log if an event matches a given priority. I know there is a StringMatchFilter, which can be used to only log if an event message matches a given string. Is there a way for me to only log if the value associated with a parti

Re: FallbackErrorHandler Example

2002-09-23 Thread Ceki Gülcü
At 15:57 23.09.2002 -0500, you wrote: >If you are using the FallbackErrorHandler in your configuration, could you >please provide an example property file? I found a couple examples (for an >XML configuration) in the Zip file that came with Ceki's "log4j - The >complete manual". However, I am us

FallbackErrorHandler Example

2002-09-23 Thread Matthew_Bennett/MO/americancentury
If you are using the FallbackErrorHandler in your configuration, could you please provide an example property file? I found a couple examples (for an XML configuration) in the Zip file that came with Ceki's "log4j - The complete manual". However, I am using a PropertyConfigurator. Can a Fallbac

RE: Name of rolled over files

2002-09-23 Thread Mark Womack
Thomas, It's not like we are hiding or anything, geez. :-) If you think you have a great change, then go ahead and submit them on the log4j-dev list. I know the rolling appenders have generated a lot of dicussion and suggestions. The next major version of log4j is 1.3, and there is a plan (htt

Re: log4j implementation

2002-09-23 Thread Priya K
Comments embedded. --- kumar kumar <[EMAIL PROTECTED]> wrote: > Dear Sir/Madam, > > I am working on J2EE project.There i am using > different design > pattern in J2EE application. > 1. Business Delegate > 2. Session Bean/Entity Bean > 3. DAO > 4. Database > > I am interested to use log4j. Ple

usual logger OR etended logger

2002-09-23 Thread Greg Fitzgerald
I have created our own logger, and logger factory. This was in order to use our own extended layout object and extended logging event. The extended logger really only applies to some of our components that use a Specific object, that relates to our own layout. So these components make a call l

RE: Question on configureAndWatch

2002-09-23 Thread Mark Womack
Collette, Are you setting the "append" property for the appender to false? By default, FileAppender is supposed to append to existing files. Not recreate them each time. Loggers that are referenced in the updated configuration file have all of their existing appenders shutdown. Then the appen

Question on configureAndWatch

2002-09-23 Thread Matthias, Collette
We are having an issue with the configureAndWatch routine when we modify the log4j.properties file, the log that is currently been written to is zero'd out and overwritten when a change is detected. Is this the correct behavior? I did not notice in any of the documents or discussions of anyon

AW: Name of rolled over files

2002-09-23 Thread Auinger, Thomas
Yay!! ;)) any 'offical comment' from the developers? Probably even a release number for which our proposed interface could be included? cya, thomas > -Ursprüngliche Nachricht- > Von: Thomas Muller [mailto:[EMAIL PROTECTED]] > Gesendet: Montag, 23. September 2002 16:45 > An: Log4J User

RE: Name of rolled over files

2002-09-23 Thread Thomas Muller
No objections, you're absolutely right! -- Thomas | -Original Message- | From: Auinger, Thomas [mailto:[EMAIL PROTECTED]] | Sent: 23 September 2002 15:34 | To: 'Log4J Users List' | Subject: AW: Name of rolled over files | | | | The interface approach sounds fine for me, but why would y

AW: Name of rolled over files

2002-09-23 Thread Auinger, Thomas
The interface approach sounds fine for me, but why would you declare the method with a String parameter? The rollOver() method clearly needs a mapping from backupIndex (which is an int) to a filename (String). Therefore: public abstract interface FilenameResolver { public abstract S

RE: Name of rolled over files

2002-09-23 Thread Thomas Muller
Actually, I would think the best thing to do is to allow an implementation of an interface to be given in the configuration. This is quite in accordance to how other parts of Log4j is configured, e.g. renderers and filters. The interfact could be something like this: public abstract interface Fi

Name of rolled over files

2002-09-23 Thread Auinger, Thomas
Hello, I had a look at the source code of RollingFileAppender and it seems, that the file names for the rolled over files are constructed inside the rollOver() method. Since our project requires the rolled over files to follow some certain naming conventions, I wonder if it is planned to create