有关tomcat会输出很多日志debug

来源:互联网 发布:linux查看oracle端口 编辑:程序博客网 时间:2024/06/06 10:45

现象如下: 很多不想要的日志 问题

09:43:08 DEBUG localhost-startStop-1 PluggableSchemaResolver:147 - Loaded schema mappings: {http://www.springframework.org/schema/tx/spring-tx-2.5.xsd=org/springframework/transaction/config/spring-tx-2.5.xsd, http://www.springframework.org/schema/context/spring-context-3.1.xsd=org/springframework/context/config/spring-context-3.1.xsd, http://www.springframework.org/schema/util/spring-util-3.0.xsd=org/springframework/beans/factory/xml/spring-util-3.0.xsd, http://www.springframework.org/schema/tool/spring-tool.xsd=org/springframework/beans/factory/xml/spring-tool-4.0.xsd, http://www.springframework.org/schema/aop/spring-aop-3.2.xsd=org/springframework/aop/config/spring-aop-3.2.xsd, http://mybatis.org/schema/mybatis-spring-1.2.xsd=org/mybatis/spring/config/mybatis-spring-1.2.xsd, http://www.springframework.org/schema/redis/spring-redis.xsd=org/springframework/data/redis/config/spring-redis-1.0.xsd, http://www.springframework.org/schema/context/spring-context-4.0.xsd=org/springframework/context/config/spring-context-4.0.xsd, http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd=org/springframework/web/servlet/config/spring-mvc-3.2.xsd, http://www.springframework.org/schema/lang/spring-lang-3.2.xsd=org/springframework/scripting/config/spring-lang-3.2.xsd, http://www.springframework.org/schema/cache/spring-cache-3.2.xsd=org/springframework/cache/config/spring-cache-3.2.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-3.1.xsd=org/springframework/jdbc/config/spring-jdbc-3.1.xsd, http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool-3.2.xsd=org/springframework/beans/factory/xml/spring-tool-3.2.xsd, http://www.springframework.org/schema/context/spring-context.xsd=org/springframework/context/config/spring-context-4.0.xsd, http://www.springframework.org/schema/aop/spring-aop-4.0.xsd=org/springframework/aop/config/spring-aop-4.0.xsd, http://www.springframework.org/schema/jee/spring-jee-3.2.xsd=org/springframework/ejb/config/spring-jee-3.2.xsd, http://www.springframework.org/schema/context/spring-context-3.0.xsd=org/springframework/context/config/spring-context-3.0.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-4.0.xsd=org/springframework/jdbc/config/spring-jdbc-4.0.xsd, http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd=org/springframework/web/servlet/config/spring-mvc-4.0.xsd, http://www.springframework.org/schema/util/spring-util-2.5.xsd=org/springframework/beans/factory/xml/spring-util-2.5.xsd, http://www.springframework.org/schema/beans/spring-beans-3.2.xsd=org/springframework/beans/factory/xml/spring-beans-3.2.xsd, http://www.springframework.org/schema/aop/spring-aop-3.1.xsd=org/springframework/aop/config/spring-aop-3.1.xsd, http://www.springframework.org/schema/lang/spring-lang-4.0.xsd=org/springframework/scripting/config/spring-lang-4.0.xsd, http://www.springframework.org/schema/mvc/spring-mvc.xsd=org/springframework/web/servlet/config/spring-mvc-4.0.xsd, http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd=org/springframework/web/servlet/config/spring-mvc-3.1.xsd, http://www.springframework.org/schema/redis/spring-redis-1.0.xsd=org/springframework/data/redis/config/spring-redis-1.0.xsd, http://www.springframework.org/schema/tool/spring-tool-4.0.xsd=org/springframework/beans/factory/xml/spring-tool-4.0.xsd, http://www.springframework.org/schema/tx/spring-tx-3.2.xsd=org/springframework/transaction/config/spring-tx-3.2.xsd, http://www.springframework.org/schema/lang/spring-lang-3.1.xsd=org/springframework/scripting/config/spring-lang-3.1.xsd, http://www.springframework.org/schema/cache/spring-cache-3.1.xsd=org/springframework/cache/config/spring-cache-3.1.xsd, http://www.springframework.org/schema/jee/spring-jee-4.0.xsd=org/springframework/ejb/config/spring-jee-4.0.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd=org/springframework/jdbc/config/spring-jdbc-3.0.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc.xsd=org/springframework/jdbc/config/spring-jdbc-4.0.xsd, http://www.springframework.org/schema/tool/spring-tool-3.1.xsd=org/springframework/beans/factory/xml/spring-tool-3.1.xsd, http://www.springframework.org/schema/cache/spring-cache-4.0.xsd=org/springframework/cache/config/spring-cache-4.0.xsd, http://www.springframework.org/schema/jee/spring-jee-3.1.xsd=org/springframework/ejb/config/spring-jee-3.1.xsd, http://www.springframework.org/schema/task/spring-task-3.2.xsd=org/springframework/scheduling/config/spring-task-3.2.xsd, http://www.springframework.org/schema/beans/spring-beans-3.1.xsd=org/springframework/beans/factory/xml/spring-beans-3.1.xsd, http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-4.0.xsd, http://www.springframework.org/schema/aop/spring-aop-3.0.xsd=org/springframework/aop/config/spring-aop-3.0.xsd, http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd=org/springframework/web/servlet/config/spring-mvc-3.0.xsd, http://www.springframework.org/schema/beans/spring-beans-4.0.xsd=org/springframework/beans/factory/xml/spring-beans-4.0.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-4.0.xsd, http://www.springframework.org/schema/lang/spring-lang-3.0.xsd=org/springframework/scripting/config/spring-lang-3.0.xsd, http://www.springframework.org/schema/tx/spring-tx-3.1.xsd=org/springframework/transaction/config/spring-tx-3.1.xsd, http://mybatis.org/schema/mybatis-spring.xsd=org/mybatis/spring/config/mybatis-spring-1.2.xsd, http://www.springframework.org/schema/context/spring-context-2.5.xsd=org/springframework/context/config/spring-context-2.5.xsd, http://www.springframework.org/schema/task/spring-task-4.0.xsd=org/springframework/scheduling/config/spring-task-4.0.xsd, http://www.springframework.org/schema/tool/spring-tool-3.0.xsd=org/springframework/beans/factory/xml/spring-tool-3.0.xsd, http://www.springframework.org/schema/tx/spring-tx-4.0.xsd=org/springframework/transaction/config/spring-tx-4.0.xsd, http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/jee/spring-jee-3.0.xsd=org/springframework/ejb/config/spring-jee-3.0.xsd, http://www.springframework.org/schema/task/spring-task-3.1.xsd=org/springframework/scheduling/config/spring-task-3.1.xsd, http://www.springframework.org/schema/beans/spring-beans-3.0.xsd=org/springframework/beans/factory/xml/spring-beans-3.0.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-4.0.xsd, http://www.springframework.org/schema/aop/spring-aop-2.5.xsd=org/springframework/aop/config/spring-aop-2.5.xsd, http://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/util/spring-util-3.2.xsd=org/springframework/beans/factory/xml/spring-util-3.2.xsd, http://www.springframework.org/schema/task/spring-task.xsd=org/springframework/scheduling/config/spring-task-4.0.xsd, http://www.springframework.org/schema/tool/spring-tool-2.0.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx-3.0.xsd=org/springframework/transaction/config/spring-tx-3.0.xsd, http://www.springframework.org/schema/lang/spring-lang-2.5.xsd=org/springframework/scripting/config/spring-lang-2.5.xsd, http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool-2.5.xsd=org/springframework/beans/factory/xml/spring-tool-2.5.xsd, http://www.springframework.org/schema/jee/spring-jee-2.5.xsd=org/springframework/ejb/config/spring-jee-2.5.xsd, http://www.springframework.org/schema/util/spring-util-4.0.xsd=org/springframework/beans/factory/xml/spring-util-4.0.xsd, http://www.springframework.org/schema/task/spring-task-3.0.xsd=org/springframework/scheduling/config/spring-task-3.0.xsd, http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-4.0.xsd, http://www.springframework.org/schema/context/spring-context-3.2.xsd=org/springframework/context/config/spring-context-3.2.xsd, http://www.springframework.org/schema/util/spring-util-3.1.xsd=org/springframework/beans/factory/xml/spring-util-3.1.xsd, http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://www.springframework.org/schema/cache/spring-cache.xsd=org/springframework/cache/config/spring-cache-4.0.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-4.0.xsd, http://www.springframework.org/schema/beans/spring-beans-2.5.xsd=org/springframework/beans/factory/xml/spring-beans-2.5.xsd, http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.alibaba.com/schema/stat.xsd=META-INF/stat.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-3.2.xsd=org/springframework/jdbc/config/spring-jdbc-3.2.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-4.0.xsd}

09:43:08 DEBUG localhost-startStop-1 PluggableSchemaResolver:119 - Found XML schema [http://www.springframework.org/schema/beans/spring-beans-3.0.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-3.0.xsd
09:43:08 DEBUG localhost-startStop-1 PluggableSchemaResolver:119 - Found XML schema [http://www.springframework.org/schema/context/spring-context-3.0.xsd] in classpath: org/springframework/context/config/spring-context-3.0.xsd
09:43:08 DEBUG localhost-startStop-1 PluggableSchemaResolver:119 - Found XML schema [http://www.springframework.org/schema/tool/spring-tool-3.0.xsd] in classpath: org/springframework/beans/factory/xml/spring-tool-3.0.xsd
09:43:08 DEBUG localhost-startStop-1 PluggableSchemaResolver:119 - Found XML schema [http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd] in classpath: org/springframework/web/servlet/config/spring-mvc-3.0.xsd
09:43:08 DEBUG localhost-startStop-1 DefaultBeanDefinitionDocumentReader:101 - Loading bean definitions
09:43:08 INFO  localhost-startStop-1 XmlBeanDefinitionReader:317 - Loading XML bean definitions from URL [file:/E:/workspace/proChange/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/base-service-out/WEB-INF/classes/META-INF/spring/comp.xml]
09:43:08 DEBUG localhost-startStop-1 DefaultDocumentLoader:73 - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
09:43:08 DEBUG localhost-startStop-1 PluggableSchemaResolver:119 - Found XML schema [http://www.springframework.org/schema/beans/spring-beans-3.0.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-3.0.xsd
09:43:08 DEBUG localhost-startStop-1 PluggableSchemaResolver:119 - Found XML schema [http://www.springframework.org/schema/aop/spring-aop-3.0.xsd] in classpath: org/springframework/aop/config/spring-aop-3.0.xsd
09:43:09 DEBUG localhost-startStop-1 PluggableSchemaResolver:119 - Found XML schema [http://www.springframework.org/schema/tool/spring-tool-3.0.xsd] in classpath: org/springframework/beans/factory/xml/spring-tool-3.0.xsd
09:43:09 DEBUG localhost-startStop-1 PluggableSchemaResolver:119 - Found XML schema [http://www.springframework.org/schema/tx/spring-tx-3.0.xsd] in classpath: org/springframework/transaction/config/spring-tx-3.0.xsd
09:43:09 DEBUG localhost-startStop-1 DefaultBeanDefinitionDocumentReader:101 - Loading bean definitions
09:43:09 DEBUG localhost-startStop-1 DefaultNamespaceHandlerResolver:157 - Loaded NamespaceHandler mappings: {http://www.springframework.org/schema/p=org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler, http://www.springframework.org/schema/mvc=org.springframework.web.servlet.config.MvcNamespaceHandler, http://www.springframework.org/schema/util=org.springframework.beans.factory.xml.UtilNamespaceHandler, http://www.alibaba.com/schema/stat=com.alibaba.druid.support.spring.stat.config.DruidStatNamespaceHandler, http://www.springframework.org/schema/jee=org.springframework.ejb.config.JeeNamespaceHandler, http://www.springframework.org/schema/aop=org.springframework.aop.config.AopNamespaceHandler, http://www.springframework.org/schema/jdbc=org.springframework.jdbc.config.JdbcNamespaceHandler, http://www.springframework.org/schema/redis=org.springframework.data.redis.config.RedisNamespaceHandler, http://www.springframework.org/schema/cache=org.springframework.cache.config.CacheNamespaceHandler, http://mybatis.org/schema/mybatis-spring=org.mybatis.spring.config.NamespaceHandler, http://www.springframework.org/schema/c=org.springframework.beans.factory.xml.SimpleConstructorNamespaceHandler, http://www.springframework.org/schema/tx=org.springframework.transaction.config.TxNamespaceHandler, http://www.springframework.org/schema/task=org.springframework.scheduling.config.TaskNamespaceHandler, http://www.springframework.org/schema/lang=org.springframework.scripting.config.LangNamespaceHandler, http://www.springframework.org/schema/context=org.springframework.context.config.ContextNamespaceHandler}
09:43:09 DEBUG localhost-startStop-1 BeanDefinitionParserDelegate:494 - Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver#7ff77f9d]
09:43:09 DEBUG localhost-startStop-1 BeanDefinitionParserDelegate:494 - Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter#51db5e0d]
09:43:09 DEBUG localhost-startStop-1 BeanDefinitionParserDelegate:494 - Neither XML 'id' nor 'name' specified - using generated bean name [org.mybatis.spring.mapper.MapperScannerConfigurer#0]
09:43:09 DEBUG localhost-startStop-1 BeanDefinitionParserDelegate:494 - Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0]
09:43:09 DEBUG localhost-startStop-1 BeanDefinitionParserDelegate:494 - Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0]
09:43:09 DEBUG localhost-startStop-1 BeanDefinitionParserDelegate:464 - No XML 'id' specified - using 'transactionManager' as bean name and [] as aliases
09:43:09 DEBUG localhost-startStop-1 XmlBeanDefinitionReader:223 - Loaded 18 bean definitions from location pattern [classpath*:META-INF/spring/comp.xml]
09:43:09 DEBUG localhost-startStop-1 DefaultBeanDefinitionDocumentReader:236 - Imported 18 bean definitions from URL location [classpath*:META-INF/spring/comp.xml]
09:43:09 DEBUG localhost-startStop-1 StandardEnvironment:109 - Adding [systemProperties] PropertySource with lowest search precedence
09:43:09 DEBUG localhost-startStop-1 StandardEnvironment:109 - Adding [systemEnvironment] PropertySource with lowest search precedence
09:43:09 DEBUG localhost-startStop-1 StandardEnvironment:126 - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
09:43:09 DEBUG localhost-startStop-1 ClassPathBeanDefinitionScanner:244 - JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning
09:43:09 DEBUG localhost-startStop-1 PathMatchingResourcePatternResolver:556 - Looking for matching resources in directory tree [E:\workspace\proChange\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\base-service-out\WEB-INF\classes\cn\base\out]
09:43:09 DEBUG localhost-startStop-1 PathMatchingResourcePatternResolver:618 - Searching directory [E:\workspace\proChange\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\base-service-out\WEB-INF\classes\cn\base\out] for files matching pattern [E:/workspace/proChange/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/base-service-out/WEB-INF/classes/cn/base/out/**/*.class]
09:43:09 DEBUG localhost-startStop-1 PathMatchingResourcePatternResolver:618 - Searching directory [E:\workspace\proChange\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\base-service-out\WEB-INF\classes\cn\base\out\bean] for files matching pattern [E:/workspace/proChange/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/base-service-out/WEB-INF/classes/cn/base/out/**/*.class]
09:43:09 DEBUG localhost-startStop-1 PathMatchingResourcePatternResolver:618 - Searching directory [E:\workspace\proChange\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\base-service-out\WEB-INF\classes\cn\base\out\bean\auth] for files matching pattern [E:/workspace/proChange/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/base-service-out/WEB-INF/classes/cn/base/out/**/*.class]
09:43:09 DEBUG localhost-startStop-1 PathMatchingResourcePatternResolver:618 - Searching directory [E:\workspace\proChange\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\base-service-out\WEB-INF\classes\cn\base\out\controller] for files matching pattern [E:/workspace/proChange/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/base-service-out/WEB-INF/classes/cn/base/out/**/*.class]
09:43:09 DEBUG localhost-startStop-1 PathMatchingResourcePatternResolver:618 - Searching directory [E:\workspace\proChange\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\base-service-out\WEB-INF\classes\cn\base\out\dao] for files matching pattern [E:/workspace/proChange/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/base-service-out/WEB-INF/classes/cn/base/out/**/*.class]
09:43:09 DEBUG localhost-startStop-1 PathMatchingResourcePatternResolver:618 - Searching directory [E:\workspace\proChange\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\base-service-out\WEB-INF\classes\cn\base\out\dao\iface] for files matching pattern [E:/workspace/proChange/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/base-service-out/WEB-INF/classes/cn/base/out/**/*.class]
09:43:09 DEBUG localhost-startStop-1 PathMatchingResourcePatternResolver:618 - Searching directory [E:\workspace\proChange\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\base-service-out\WEB-INF\classes\cn\base\out\dao\impl] for files matching pattern [E:/workspace/proChange/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/base-service-out/WEB-INF/classes/cn/base/out/**/*.class]
09:43:09 DEBUG localhost-startStop-1 PathMatchingResourcePatternResolver:618 - Searching directory [E:\workspace\proChange\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\base-service-out\WEB-INF\classes\cn\base\out\filter] for files matching pattern [E:/workspace/proChange/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/base-service-out/WEB-INF/classes/cn/base/out/**/*.class]
09:43:09 DEBUG localhost-startStop-1 PathMatchingResourcePatternResolver:618 - Searching directory [E:\workspace\proChange\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\base-service-out\WEB-INF\classes\cn\base\out\i18n] for files matching pattern [E:/workspace/proChange/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/base-service-out/WEB-INF/classes/cn/base/out/**/*.class]
09:43:09 DEBUG localhost-startStop-1 PathMatchingResourcePatternResolver:618 - Searching directory [E:\workspace\proChange\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\base-service-out\WEB-INF\classes\cn\base\out\init] for files matching pattern [E:/workspace/proChange/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/base-service-out/WEB-INF/classes/cn/base/out/**/*.class]

09:43:09 DEBUG localhost-startStop-1 PathMatchingResourcePatternResolver:618 - Searching directory [E:\workspace\proChange\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\base-service-out\WEB-INF\classes\cn\base\out\log] for files matching pattern [E:/workspace/proChange/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/base-service-out/WEB-INF/classes/cn/base/out/**/*.class]


原因是:

1.是你的logback日志的包配置有问题

如:web.xml配置listener顺序错误:



  <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/springxml/web-servlet.xml,/WEB-INF/springxml/context.xml</param-value>
  </context-param>
  
    <context-param>  
    <param-name>logbackConfigLocation</param-name>  
    <param-value>/WEB-INF/classes/logback.xml</param-value>  
  </context-param>  
  
    <listener>  
    <listener-class>ch.qos.logback.ext.spring.web.LogbackConfigListener</listener-class>  
  </listener>   
  
  <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>

---------------一定要log日志Listener顺序启动要早与spring包

2. 所需要的包一定要有:

slf4j-api-1.7.6.jar 

logback-ext-spring-0.1.2.jar

logback-core-1.1.7.jar

logback-classic-1.1.7.jar

logback-access-1.1.7.jar

3.maven配置:

<dependency>
   <groupId>ch.qos.logback</groupId>
   <artifactId>logback-classic</artifactId>
   <version>1.1.7</version>
</dependency> 
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>1.1.7</version>
</dependency>
<dependency>
   <groupId>org.logback-extensions</groupId>
   <artifactId>logback-ext-spring</artifactId>
   <version>0.1.2</version>
</dependency> 
<dependency>
   <groupId>org.logback-extensions</groupId>
   <artifactId>logback-ext-loggly</artifactId>
   <version>0.1.2</version>
</dependency>
<dependency>
   <groupId>ch.qos.logback</groupId>
   <artifactId>logback-access</artifactId>
   <version>1.1.7</version>
</dependency>
<dependency>
<!-- 覆盖ACL -->
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>1.7.25</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<version>1.7.25</version>
</dependency> 

3.按照以下方法,tomcat日志就可以自己配置了,可以显示正常日志了


有这方面的问题,可以相互学习,谢谢!!

QQ: 366410994







原创粉丝点击