struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Neu" <peter....@gmx.net>
Subject AW: AW: AW: [OT] Re: How to turn off logging info on struts startup?
Date Fri, 01 Sep 2006 09:35:15 GMT
*Argh* sometimes I'm just stupid. Yes, package name was wrong. 

I see this struts logging INFO for example:

01.09.2006 11:31:46 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings',
returnNull=true





> -----Urspr√ľngliche Nachricht-----
> Von: Antonio Petrelli [mailto:brenmcguire@tariffenet.it]
> Gesendet: Freitag, 1. September 2006 11:26
> An: Struts Users Mailing List
> Betreff: Re: AW: AW: [OT] Re: How to turn off logging info on struts
> startup?
> 
> 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



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


Mime
View raw message