apache-commons-logging

What is the significance of log4j.rootLogger property in log4j.properties file? What happens if i don't use this property?

可紊 提交于 2019-11-26 19:07:08
问题 What is the significance of log4j.rootLogger property in log4j.properties file? What happens if I don't use this property? Example : # Set root logger level to DEBUG and its only appender to A1. log4j.rootLogger=DEBUG, A1 # A1 is set to be a ConsoleAppender. log4j.appender.A1=org.apache.log4j.ConsoleAppender What happens if I set this property to ERROR mode. 回答1: Samudra Gupta explains in his book 1 : The Logger object is the main object that an application developer uses to log any message.

Maven build [WARNING] we have a duplicate class

本秂侑毒 提交于 2019-11-26 18:28:25
问题 Anybody has any idea what happened to my maven build? I am getting a lot of duplicate warnings. [WARNING] We have a duplicate org/apache/commons/logging/impl/LogFactoryImpl$1.class in /home/shengjie/.m2/repository/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar [WARNING] We have a duplicate org/apache/commons/logging/impl/LogFactoryImpl.class in /home/shengjie/.m2/repository/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar [WARNING] We have a

How to disable Spring logging DEBUG messages?

雨燕双飞 提交于 2019-11-26 08:18:48
问题 I\'m working on a simple desktop app (not webapp). Here is my log4j.properties : log4j.rootCategory=INFO, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %t %c{2}:%L $$$$ %m%n log4j.logger.org.springframework=ERROR,stdout As you can see, in order to eliminate Spring logging messages from the console, I tried this solution: Disabling Spring log, to have