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
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
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
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
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
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
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
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
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
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
10 matches
Mail list logo