我想禁用 Wire 类调试信息,我有以下 log4j.properties 文件
log4j.rootLogger=DEBUG, console, file
log4j.org.apache.http.wire=ERROR
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%d [%t] %-5p %c: %L - %m%n
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=LogFile.log
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.conversionPattern=%d [%t] %-5p %c: %L - %m%n
我的类路径中有 slf4j,log4j和commons logging jar。