如何阻止TOMCAT5.5 輸出如內文中的日誌?
首先,我的conf/server.xml中沒有
XML code
<Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_examples_log." suffix=".txt" timestamp="true"/>
其次,conf下有logging.properties,全注釋掉了,然後重啟tomcat,還是輸出如下日誌.
logs/catalina.out增長速度太快了.一會就能長100多M,愁死我了.
Java code
693290 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG org.apache.catalina.startup.HostConfig - Checking context[/host-manager] reload resource /u04/software/tomcat/server/webapps/host-manager/WEB-INF/web.xml 693291 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG org.apache.catalina.startup.HostConfig - Checking context[/tomcat-docs] redeploy resource /u04/software/tomcat/webapps/tomcat-docs 693291 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG org.apache.catalina.startup.HostConfig - Checking context[/tomcat-docs] redeploy resource /u04/software/tomcat/webapps/tomcat-docs/META-INF/context.xml 693291 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG org.apache.catalina.startup.HostConfig - Checking context[/tomcat-docs] reload resource /u04/software/tomcat/conf/context.xml 693291 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG org.apache.catalina.startup.HostConfig - Checking context[/tomcat-docs] reload resource /u04/software/tomcat/webapps/tomcat-docs/WEB-INF/web.xml 693291 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG org.apache.catalina.startup.HostConfig - Checking context[/cpadmin] redeploy resource /u04/software/tomcat/webapps/cpadmin 693291 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG org.apache.catalina.startup.HostConfig - Checking context[/cpadmin] redeploy resource /u04/software/tomcat/conf/Catalina/localhost/cpadmin.xml 693291 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG org.apache.catalina.startup.HostConfig - Checking context[/cpadmin] reload resource /u04/software/tomcat/conf/context.xml 693291 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG org.apache.catalina.startup.HostConfig - Checking context[/cpadmin] reload resource /u04/software/tomcat/webapps/cpadmin/WEB-INF/web.xml 693291 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG org.apache.catalina.startup.HostConfig - Checking context[/cpadmin] reload resource /u04/software/tomcat/conf/Catalina/localhost/cpadmin.xml 693291 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG org.apache.catalina.startup.HostConfig - Checking context[] redeploy resource /u04/software/tomcat/webapps/ROOT 693291 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG org.apache.catalina.startup.HostConfig - Checking context[] redeploy resource /u04/software/tomcat/webapps/ROOT/META-INF/context.xml 693291 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG org.apache.catalina.startup.HostConfig - Checking context[] reload resource /u04/software/tomcat/conf/context.xml 693291 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG org.apache.catalina.startup.HostConfig - Checking context[] reload resource /u04/software/tomcat/webapps/ROOT/WEB-INF/web.xml