struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Petrelli <brenmcgu...@tariffenet.it>
Subject Re: AW: AW: [OT] Re: How to turn off logging info on struts startup?
Date Fri, 01 Sep 2006 09:26:13 GMT
Peter Neu ha scritto:
> Hm, file looks now like this:
>
> log4j.rootLogger=ERROR, cons
> log4j.appender.cons=org.apache.log4j.ConsoleAppender
> log4j.logger.de.ktbl=DEBUG, cons, myAppender
> log4j.additivity.de.ktbl=false
> log4j.appender.myAppender=org.apache.log4j.RollingFileAppender
> log4j.appender.myAppender.File=c:/nbw06-2.log
> log4j.appender.myAppender.MaxBackupIndex=5
> log4j.appender.myAppender.MaxFileSize=1MB
> log4j.appender.cons.layout=org.apache.log4j.SimpleLayout
> log4j.appender.myAppender.layout=org.apache.log4j.PatternLayout
> log4j.appender.myAppender.layout.ConversionPattern= %n %-5p [%d{dd.MM.yy
> HH:mm:ss}] - %m
>
>
> Struts Initialization log output still appears.

All logs or only from ERROR level and above?

> Other output from app is gone. Log file stays empty. 
>   

Sounds strange. Are you sure you are using "de.ktbl" package in your 
application? And do you call the logger this way?

Logger logger = Logger.getLogger(MyApplicationClass.class);



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


Mime
View raw message