0
我想讓我的log4j屬性工作,我搞砸了,我想。Log4j設置,不顯示我的包的日誌
log4j.rootLogger=ALL
log4j.appender.CA=org.apache.log4j.ConsoleAppender
log4j.appender.CA.layout=org.apache.log4j.PatternLayout
log4j.appender.CA.layout.ConversionPattern=%d{ddMMMyy HH:mm:ss,SSS} %-4r [%t] %-5p %c{1} %x - %m%n
log4j.logger.org.hibernate=ERROR
log4j.debug=TRUE
log4j.logger.net.spy.memcached=ERROR
log4j.logger.com.mcruiseon.server=ALL
我的包是com.mcruiseon.server
什麼是loglevel ALL?這不應該像INFO或DEBUG那樣嗎?另外,不應該你的記錄器設置選擇一個合適的appender? – wallenborn
這工作? log4j.rootLogger = INFO,ConsoleAppender – Siddharth