Jenkins显示log4j出现以下问题:log4j:WARN无法找到记录器的附加程序
Jenkins显示log4j出现以下问题:log4j:WARN无法找到记录器的附加程序
这个问题已经有了答案:
请问有谁能帮我找出Jenkins为什么在IDE中正常工作时会抱怨log4j的原因?我熟悉这个错误以及解决方法。在我的src文件夹中有一个log4j.properties文件。当我从IDE中运行我的测试时,我看不到这个错误。只有从Jenkins中才会出现。谢谢任何帮忙。
这不是我被链接到的那些问题!请阅读问题!这是在Jenkins中出现的,而不是在IDE中。
谢谢
堆栈:
Started by user anonymous Building in workspace C:\Users\userm4\.jenkins\jobs\Company Smoke Test\workspace [Selenium Main] $ cmd.exe /C '"C:\apache-ant-1.9.4\bin\ant.bat -file TestNG run makexsltreports && exit %%ERRORLEVEL%%"' Buildfile: E:\Selenium Main\TestNG\build.xml setClassPath: init: clean: [delete] Deleting directory E:\Selenium Main\TestNG\build compile: [echo] making directory... [mkdir] Created dir: E:\Selenium Main\TestNG\build [echo] classpath------: E:\Selenium Main\TestNG\lib\SaxonLiaison.jar:E:\Selenium Main\TestNG\lib\jtds-1.3.1.jar:E:\Selenium Main\TestNG\lib\junit-4.11.jar:E:\Selenium Main\TestNG\lib\log4j-1.2.17.jar:E:\Selenium Main\TestNG\lib\mysql-connector-java-5.1.34.jar:E:\Selenium Main\TestNG\lib\saxon-8.7.jar:E:\Selenium Main\TestNG\lib\selenium-java-2.44.0.jar:E:\Selenium Main\TestNG\lib\selenium-server-standalone-2.44.0.jar:E:\Selenium Main\TestNG\lib\testng-6.8.8.jar [echo] compiling... [javac] E:\Selenium Main\TestNG\build.xml:66: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 52 source files to E:\Selenium Main\TestNG\build run: [testng] [TestNG] Running: [testng] E:\Selenium Main\TestNG\testng.xml [testng] [testng] log4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies). [testng] log4j:WARN Please initialize the log4j system properly. [testng] log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
...
admin 更改状态以发布 2023年5月21日