Multiple Appenders Stumper

2003-01-20 Thread Scott Schenksj
Hi All, I have a configuration "stumper"... Using the PropertiesConfigurator (from a properties file, not doing any special programming if at all possible), I would like to set up my loggers to do the following: Log FATAL->ERROR to appender 1 Log FATAL->DEBUG to appender 2 So... --

JMSAppender

2003-01-20 Thread FLYNN, Peter -Syntegra UK
Does the JMSAppender serialise the Throwable information? I've extracted the org.apache.log4j.spi.LoggingEvent from the ObjectMessage that I've received on a JMS topic. I can recover the local information (classname, method and linenumber) but if an exception is present, the Throwable seems to

RE: JMSAppender

2003-01-20 Thread FLYNN, Peter -Syntegra UK
Actually, forget that as I've just read about serialisation and throwable in the Java Doc. If the throwable does not survive serialisation, is there a way (at all) to recover the stack trace? There's a method to return the string representation of the stack trace. Does this get called (by JMSAppen

Re: log4j writing to ServletContext.log()

2003-01-20 Thread Bill Schneider
Here is the code for ServletLogAppender.java. Basically, all you need to do to use it is put the right "appender" section in your log4j properties: log4j.[[category]] = ... , servletAppender, ... log4j.servletAppender=com.vecna.servlet.ServletLogAppender and be sure to call ServletLogAppender.se

Multiple Appenders Stumper

2003-01-20 Thread Scott Schenksj
One of my co-workers found it. Thanks if anyone was looking into this for me. From the FAQ Is it possible to direct log output to different appenders by level? Yes it is. Setting the Threshold option of any appender extending AppenderSkeleton, (most log4j appenders exte

How to set different priority to use different log file?

2003-01-20 Thread Yonghui Chen
Hi all, I want to logging DEBUG into debug.log, ERROR into error.log, how to configure it in log4j.properties? Thanks. _ Do You Yahoo!? "¿î¿î¸ß¹óµäÑÅ£¬¿ìÀ´²Î¼ÓÆû³µµ÷²é" http://cn.surveys.yahoo.com/gm_campaign_evaluation -- To unsubscribe

Re: How to set different priority to use different log file?

2003-01-20 Thread Neil Pitman
That question just came up today: see: http://marc.theaimsgroup.com/?l=log4j-user&m=104308976118887&w=2 In fact, check http://marc.theaimsgroup.com/?l=log4j-user before you post. It has the past mailing list postings. There's a lot of good information there. Neil - Original Message - F