我在eclipse中创建了动态Web项目。我无法将commons-logginf文件传递给工厂。请帮帮我。
提前致谢
答案 0 :(得分:0)
我得到了解决方案。我能够记录轴内部流量。 src / commons-logging.properties:org.apache.commons.logging.Log = org.apache.commons.logging.impl.Log4JLogger对Log4JLogger类的输入位于属性文件下面。 web-inf中的classes文件夹:web-inf / classes / log4j.properties log4j.properties:log4j.rootCategory = DEBUG,CONSOLE log4j.appender.CONSOLE = org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.Threshold = DEBUG log4j .appender.CONSOLE.layout = org.apache.log4j.PatternLayout log4j.appender.CONSOLE.layout.ConversionPattern = - %m%n log4j.appender.LOGFILE = org.apache.log4j.FileAppender log4j.appender.LOGFILE.File = axis.log log4j.appender.LOGFILE.Append = true log4j.appender.LOGFILE.Threshold = DEBUG log4j.appender.LOGFILE.layout = org.apache.log4j.PatternLayout log4j.appender.LOGFILE.layout.ConversionPattern =% - 4r [ %t]%-5p%c%x - %m%n