RE: Using a Custom Filter

2010-05-13 Thread Andy McBride
Hi Simon, I think that the level applied to a Logger instance is evaluated first so that in this case anything below INFO is dropped by the Logger and therefore the event does not get as far as being posted into the filters/appenders. Filtering the event by setting the Logger level allows lower

RE: TRACE location information using PatternLayout (Log4j 1.2.12)

2005-09-26 Thread Andy McBride
Hi, I raised this bug on Saturday: http://issues.apache.org/bugzilla/show_bug.cgi?id=36800 Regards Andy > -Original Message- > From: Paul Vaillancourt [mailto:[EMAIL PROTECTED] > Sent: 26 September 2005 19:19 > To: Log4j Mailing List > Subject: TRACE location information using Pattern

RE: Default log4j initialization

2005-06-10 Thread Andy McBride
Hi, Log4j default initialization will look for a file named log4j.properties or log4j.xml on the classpath. If found it will use it for configuration. If you name your config file log4j.xml the initialization does not need the -D property. AFAIK it doesn't matter if you use log4.xml or s

RE: Writing log in xml format

2005-04-27 Thread Andy McBride
On Wed, 27 Apr 2005 13:03:02 -0500 Curt Arnold <[EMAIL PROTECTED]> wrote: > There is a decent likelihood for XMLLayout to change >before final release of log4j 1.3, so it may be better to >avoid subclassing it since it really doesn't appear to be >designed for extension and not that hard to d

RE: Writing log in xml format

2005-04-26 Thread Andy McBride
orm it into any format I like. Hope this helps. Regards Andy > -Original Message- > From: Dave Pawson [mailto:[EMAIL PROTECTED] > Sent: 26 April 2005 17:18 > To: [EMAIL PROTECTED] > Cc: 'Log4J Users List' > Subject: RE: Writing log in xml format > >

RE: Writing log in xml format

2005-04-25 Thread Andy McBride
Dave, Are you referring to: http://marc.theaimsgroup.com/?l=log4j-user&m=111401761531451&w=2 If so it appears that you are trying to use the PatternLayout class to render a custom format xml document? The XMLLayout class pointed out by Hakan, renders log events as xml conforming to the log4j.d

RE: Colors in console appender

2005-04-18 Thread Andy McBride
I spent ages once trying to get this to work on windows without success. Appenders are available (as you found) which work on unix/linux but with all the windows ansi hacks I could find, I still couldn't get it to work on windows xp. My advice would be to not bother (unless anyone else has th

RE: log4j trace enabled version

2005-04-03 Thread Andy McBride
You don't need to look at CVS to find what you are looking for. A search of the log4j-dev mailing list would have revealed many posts over the past year which answered your question. Perhaps you should look there before making remarks regarding what the log4j committers have and have not decided

RE: Where to set exernal property referred to in log4j.properties

2005-03-25 Thread Andy McBride
Hi, > >Maybe making the logs relative to catalina.home is the right idea. I > >suppose that my only concern though is that I'm using my primary log > file by > >both my web application and another external java application code. I > >mentioned this a couple days ago and someone suggested th

RE: logging to one file from two separate users / same group

2005-03-18 Thread Andy McBride
Hi, I'm glad you got the permissions sorted but your initial post suggested you were hoping to have multiple JVMs writing to the same file. This would most likely be a bad thing and would probably leave you with mangled logs. Regards Andy > -Original Message- > From: William Noto [m

RE: Build namespace issues

2005-03-15 Thread Andy McBride
Wow, I hope this makes sense to somebody. Personally I wouldn’t know if my template expansion was different to my library build expansion! Perhaps this reply was intended to log4cxx userlist instead? :-) > -Original Message- > From: Curt Arnold [mailto:[EMAIL PROTECTED] > Sent: 15 March

RE: Stale file handles when using log4j and tomcat?

2005-02-08 Thread Andy McBride
Hi, Have you tried using a ServletContextListener which calls org.apache.log4j.LogManager.shutdown() in its contextDestroyed method? This should allow log4j a chance to close any resources when you stop the webapp context. Regards Andy > -Original Message- > From: Fredrik Jonson [mailt

Re: problems with chainsaw build

2004-12-15 Thread Andy McBride
Sorry, that was rubbish, the 'build.chainsaw' gets called back up as a dependency on 'build'! My problem was indeed caused by an oro.jar gone astray. Re-instating the jar and doing a 'clean jar' builds me a proper chainsaw.jar Regards Andy On Thu, 16 Dec 2004

Re: problems with chainsaw build

2004-12-15 Thread Andy McBride
Hi, The 'jar' task depends on 'chainsaw.jar' which just jars up what is there. 'chainsaw.jar' target only depends on 'build', I think it also needs to depend on 'build.chainsaw' Regards Andy On Thu, 16 Dec 2004 13:11:57 +1100 Paul Smith <[EMAIL PROTECTED]> wrote: I'm a bit confused as to w

Re: Writing a Socket Acceptor for SocketAppenders

2004-08-22 Thread Andy McBride
SimpleSocketServer is included in log4j. It uses a SocketNode instance to read the LoggingEvent from the wire before logging it to the local log4j environment. Check the souce code for: org.apache.log4j.net.SimpleSocketServer and org.apache.log4j.net.SocketNode On Sat, 21 Aug 2004 13:48:32 -

RE: log4j SEVERE ThreadDeath in Tomcat 5.0.25

2004-08-05 Thread Andy McBride
Commons logging seems to cache LogFactory instances using its classloader as a key - perhaps this could be suspect? > -Original Message- > From: Ceki Gülcü [mailto:[EMAIL PROTECTED] > Sent: 05 August 2004 14:58 > To: Log4J Users List > Cc: [EMAIL PROTECTED] > Subject: RE: log4j SEVERE Thr

RE: Problems with my classpath?

2004-03-26 Thread Andy McBride
Try: export CLASSPATH= Note the = Regards Andy > -Original Message- > From: Eliezer Chavez [mailto:[EMAIL PROTECTED] > Sent: 25 March 2004 07:36 > To: [EMAIL PROTECTED] > Subject: Problems with my classpath? > > > When i run my application with > java -classpath runs well > > Bu