Hi, I have a following setup and works for me, may be u also wanna try it in my Log4J properties file i have defined <appender name="STDOUT" class="org.apache.log4j.ConsoleAppender"> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d %-5p [%t] %C{2} (%F:%L) - %m%n" /> </layout> </appender>
<root> <priority value="WARN" /> <appender-ref ref="STDOUT" /> </root> also in web.xml file i have setup debug parameter in action servlet definiation to 4 <init-param> <param-name>debug</param-name> <param-value>4</param-value> </init-param> which stoped all the debug messages, Ashish --- Scott Power <[EMAIL PROTECTED]> wrote: > I was wondering if there is a way to stop tomcat > from printing its > messages to the console. I know how to configure > the log4j message from > within the application, by setting the level in the > log4j.configuration > file but I still get message on the console like the > ones below. I > would like to stop these from showing up, I only > want to see message > from my app and the fact that tomcat has started and > stopped. I tried > to change my CATALINA_OPTS variable in my > CATALINA.bat file but I think > I might either have incorrect syntax or something, I > am using win 2000, > with tomcat 4.1. I have checked all my debug levels > in the server xml, > web.xml both for tomcat and the app itself. I know > its not a really big > deal, but I want to make some clean log files for > later use. If anyone > has ideas I would like to hear them. > > Once again thanks in advance. > > Scott > > > > > 7-Mar-2003 2:11:56 PM > org.apache.commons.modeler.Registry loadRegistry > INFO: Loading registry information > 7-Mar-2003 2:11:56 PM > org.apache.commons.modeler.Registry getRegistry > INFO: Creating new Registry instance > 7-Mar-2003 2:11:57 PM > org.apache.commons.modeler.Registry getServer > INFO: Creating MBeanServer > 7-Mar-2003 2:11:59 PM > org.apache.coyote.http11.Http11Protocol init > INFO: Initializing Coyote HTTP/1.1 on port 8080 > . > . > . > . > \/ > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > ===== A$HI$H __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]