ClassCastException whilst extending Logger

2003-11-20 Thread Scerri, Antony (ELSLON)
Hi My scenario is that I am running a webapp consisting of JSP pages and Java classes. I have run this under WebSphere 5.x and Tomcat 4.1.x. I have overridden the Logger class in the same manner as in the Log4J example subclass/MyLogger.java. This allows per-thread logging levels to be altered at

Log4J Question

2003-11-20 Thread Jones, Marty B.
I was wondering if Log4J will allow me to do the following: configure a RollingFileAppender that logs standard output. configure a RollingFileAppender that logs info and warning output. configure a RollingFileAppender that logs error level output. have a single logger that will use one of the

RE: I need my web application to output to different log files

2003-11-20 Thread Allistair Crossley
OK, I managed to work this out myself... log4j.rootLogger=debug, A log4j.logger.Application=debug, ApplicationA log4j.logger.Forms=debug, FormsA Standard Output log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

Re: Chainsaw - viewing log files from client side

2003-11-20 Thread Daniel J Mauer
Thanks. I have Chainsaw v1. If you let me know how to access the V2 software I can give it a try. If the new version includes code for loading a remote XML file via a standard URL and a static factory method to start Chainsaw I think that might be beneficial. Dan

Re: Log4J Question

2003-11-20 Thread Paul Smith
On Thu, 2003-11-20 at 22:51, Jones, Marty B. wrote: I was wondering if Log4J will allow me to do the following: configure a RollingFileAppender that logs standard output. configure a RollingFileAppender that logs info and warning output. configure a RollingFileAppender that logs error level

Re: Chainsaw - viewing log files from client side

2003-11-20 Thread Paul Smith
On Fri, 2003-11-21 at 05:16, Daniel J Mauer wrote: Thanks. I have Chainsaw v1. If you let me know how to access the V2 software I can give it a try. If the new version includes code for loading a remote XML file via a standard URL and a static factory method to start Chainsaw I think that

RE: How do I use filters in AND condition fashion?

2003-11-20 Thread Mark Womack
Eric, There are some filter classes in the log4j-sandbox cvs that you might want to look at. http://cvs.apache.org/viewcvs/jakarta-log4j-sandbox/src/java/org/apache/log4 j/filter/ MatchFilterBase.java is the base class for most of them and it allows configuration for OR and AND type filter