struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Per Jørgen Walstrøm <per.walst...@statnett.no>
Subject SV: How to stop struts logging in my web application
Date Wed, 23 Nov 2005 12:35:34 GMT
use a category to limit the DEBUGs from e.g. struts

xml-example:

   <!-- Limit the org.apache category to INFO as its DEBUG is verbose -->
   <category name="org.apache">
      <priority value="INFO"/>
   </category> 

-----Opprinnelig melding-----
Fra: nitin mandolkar [mailto:nitinmandolkar@gmail.com] 
Sendt: 23. november 2005 13:31
Til: user@struts.apache.org
Emne: How to stop struts logging in my web application

Hello Strust Users

In Strus webapplication when i set log4.properties file with below option It logs also strus
log which is creating the very big log file. I want log only my webapplication log statement
rather than strust.

Is there any property i have to set in log file where i can disabble or enable this one.


# Root Logger: LEVEL, appenders
log4j.rootLogger=DEBUG, RollingAppender
#
#######################################################
# Console appender - Usefull for development #######################################################
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%X{LOG_TRAIL_TRACE}%5p
[%d{ISO8601}] %X{USER_TRACE}(%F:%L) - %m%n # #######################################################
# Standard appender
#######################################################
log4j.appender.RollingAppender=org.apache.log4j.DailyRollingFileAppender
log4j.appender.RollingAppender.File=C:/DEV_NITIN/applog/testprj.log
log4j.appender.RollingAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.RollingAppender.layout.ConversionPattern=%X{LOG_TRAIL_TRACE}%5p
[%d{ISO8601}] %X{USER_TRACE}(%F:%L) - %m%n log4j.appender.RollingAppender.DatePattern='.'yyyy-MM-dd

---------------------------------------------------------------------
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