logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Buske, Zoa" <zbu...@uswest.com>
Subject FW: properties of rollingfileappender
Date Mon, 06 Aug 2001 17:56:08 GMT
Did this ever get answered?  I didn't see it.  Is there any way to add a
timestamp?
Thanks
Zoa

-----Original Message-----
From: Prasad Balasubramanian [mailto:besprasad@coppercom.com]
Sent: Friday, July 27, 2001 5:09 PM
To: 'log4j-user@jakarta.apache.org'
Subject: RE: properties of rollingfileappender


Thanks Rick,
  By the way, is there any option to specify how the backup file's name has
to be ? It always creates an extention as .1 , .2 etc to the given filename.
Do we have any control over the rollingoverappender's backup file  name
through apis ?
Prasad
-----Original Message-----
From: Hansen, Richard [mailto:Richard.Hansen@westgroup.com]
Sent: Friday, July 27, 2001 5:34 PM
To: 'LOG4J Users Mailing List'
Subject: RE: properties of rollingfileappender


There is no separate, central document on properties and log4j
configuration. Basically, you have to look at the JavaDoc for the appender
of interest. Log4J follows the Java bean standard. The public setter methods
are going to be the properties you can put in your config file. For example
if I had a RollingFileAppender I called TEXT then I could do :

setMaxBackupIndex() = log4j.appender.TEXT.MaxBackupIndex=10
setMaxFileSize()    = log4j.appender.TEXT.MaxFileSize=500KB
setFile()           = log4j.appender.TEXT.File=C:/logs/service.log

Rick Hansen

> 
> Hi all,
>   How do I find out what are properties of each appender 
> available in log4j
> to configure them in a config file. For example for 
> RollingFileAppender, I
> would like to know the right way/method to find the property 
> name of  max
> backup files index. Please let me know whether theres any 
> common way of
> finding these out.
> Thanks
> Prasad

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Mime
View raw message