Where do you define your stdout, R, and html appenders?
On 12/27/06, Paolo Bacci <[EMAIL PROTECTED]> wrote:
Hi all,
I'm having problems writing to multiple appenders.
I made a log4j.properties and I'd like it to write to 2 different log files,
but it seems like nothing works....
I'm doing this on my .properties:
log4j.rootLogger=all, stdout, R, html
> log4j.secondAppender=INHERITED, app
#### App appender properties
> log4j.appender.app=org.apache.log4j.RollingFileAppender
> log4j.appender.app.File=/tmp/log.log
>
> # Control the maximum log file size
> log4j.appender.app.MaxFileSize=100KB
> # Archive log files (one backup file here)
> log4j.appender.app.MaxBackupIndex=1
>
> log4j.appender.app.layout=org.apache.log4j.PatternLayout
> log4j.appender.app.layout.ConversionPattern=%d:%-5r %-5p[%t | %c{1}:%L |
> %M] %m%n
>
Rootlogger is doing great, but the second one is just not doing anything at
all.
Does anybody has any clue about why is it happening?
thanks in advance
Paolo
--
James Stauffer http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]