Re: Daily rollover of log file

2002-07-16 Thread Craig Smith
Try the DailyRollingFileAppender. http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/DailyRollingFileAppender.html >>> [EMAIL PROTECTED] 07/16/02 10:17AM >>> Hi, I'm looking to roll over my log file on a daily basis (not based on file size) and was wondering how this can be done. I c

Re: Log4j configuration

2002-07-17 Thread Craig Smith
You have a class loader issue. This problem is described at http://qos.ch/containers/sc.html. It also provides a solution for Tomcat that you could apply to JBoss. Craig >>> [EMAIL PROTECTED] 07/17/02 02:01PM >>> I think this question was better directed at Log4j than JBoss. We are using JBo

Re: configuration info ?

2002-07-18 Thread Craig Smith
The properties that can be set map directly to the properties of the classes, following the JavaBeans conventions. So if a class has a setXXX method, you can configure the XXX property. With loggers it's a little trickier since the name of a logger may itself include a period. Therefore the

SNMPAppender

2002-07-24 Thread Craig Smith
Has anyone written an SNMP appender? I'd be interested in one. If there isn't one available I might pick away at it. Craig Please Note The information in this E-mail message is legally privileged and conf

Re: How to use Chainsaw?

2002-07-29 Thread Craig Smith
You might also consider using LogFactor5. Assuming your classpath is set up properly with the log4j.jar and its dependencies, start it with: java org.apache.log4j.lf5.StartLogFactor5 Craig >>> [EMAIL PROTECTED] 07/29/02 07:23AM >>> Hi! I just switched to Log4J 1.2.5 and now I'd like to try t

Re: LogFactor5 files

2002-07-31 Thread Craig Smith
You need to produce a specifically formatted file. See the documentation at http://jakarta.apache.org/log4j/docs/lf5/readingfiles.html which describes how to do that. This brings up a point. Is there a reason why LogFactor5 can not use XMLLayout generated files? I like some features of Ch

8/7 manual - nitpicks

2002-08-31 Thread Craig Smith
Page 46 - Syntax of XML scripts, paragraph 1, eliminate "part": A DTD file is not part particularly palatable to the eye, so we give it a more amenable and narrative description here. Page 46 - last paragraph, "sting" needs an 'r': The threshold attribute can take the case insensitive sting va

JMX

2002-09-04 Thread Craig Smith
ion, has anyone else come up with what they consider a good pattern for managing logging in web applications? Craig Smith Please Note The information in this E-mail message is legally privileged and conf

Re: Problems with Xalan/Xerces using Log4J 1.2.3 withWebSphere 4.01

2002-09-04 Thread Craig Smith
I think you were on the right track. But just because you have xerces and xalan in the WEB-INF/lib directory doesn't mean log4j.jar will find it there. If the log4j.jar is placed in the "lib/app" directory as you described, it will not be loaded by the module classloader. Instead the Applica

Getting all current loggers

2003-01-07 Thread Craig Smith
Is LogManager.getCurrentLoggers supposed to return all loggers including the root? I'm only getting a single logger (my application logger). When I try calling getAllAppenders() the appenders I'm interested in are not returned because they are attached to the root. It's easy enough to also ge