I have the following set up and have a few questions:

************** start *****************************************

log4j.rootCategory=INFO, A1
log4j.rootLogger= DEBUG, CLIPROLLINGLOG

##################################################
# Rolling log for CLIP (CLIPROLLINGLOG)
log4j.appender.CLIPROLLINGLOG=org.apache.log4j.RollingFileAppender
log4j.appender.CLIPROLLINGLOG.File=/wasdata2/logs/clip.log
log4j.appender.CLIPROLLINGLOG.layout=org.apache.log4j.PatternLayout
log4j.appender.CLIPROLLINGLOG.layout.ConversionPattern=%d %-5p [%t] %c
-%x %m%n
log4j.appender.CLIPROLLINGLOG.MaxFileSize=20MB
log4j.appender.CLIPROLLINGLOG.MaxBackupIndex=2

### CLIP ###
log4j.logger.gov.twcc.txcomp.clip=DEBUG, CLIPROLLINGLOG
log4j.additivity.gov.twcc.txcomp.clip=false
log4j.logger.gov.twcc.txcomp.clip.entity=DEBUG, CLIPROLLINGLOG
log4j.additivity.gov.twcc.txcomp.clip.entity=false
log4j.logger.gov.twcc.txcomp.clip.ejb.mdb=DEBUG, CLIPROLLINGLOG
log4j.additivity.gov.twcc.txcomp.clip.ejb.mdb=false
#################################################

************** end *****************************************

1)  Is there a better way to do this?  Note that I have one log (I have
many more logs, but the rest will be based on the responses I get from
this email) and it seems like there might be a "shorter" way to put
this.  In this case, I am using all at debug level, but that probably
won't stay that way (at least not for a permanent basis).

2)  If I add a new log, will I have to basically repeat this whole
block except with a new name (something instead of CLIPROLLOINGLOG)?

3)  If there are multiple logs, can I just append them to the
"log4j.rootLogger= DEBUG, CLIPROLLINGLOG" line (like log4j.rootLogger=
DEBUG, CLIPROLLINGLOG, NEWLOG, ANOTHERNEWLOG)?

4)  Is the rootCategory just having a "default" impact, meaning that if
I don't specify otherwise, I get INFO?  And does this ONLY apply to A1? 
If so, could I append the new log names onto this as in question number
3?

5)  Is there a way to include everything from a point on in a directory
structure (gov.twcc.txcomp.clip*) rather than having to say each one
independently?

This is ONLY a portion of what is in the logger properties.

Thanks, in advance, for any help,


Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to