Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在目标和选项中的 Jenkins 构建配置中传递 java 命令行选项 -Dorg.slf4j.simpleLogger.defaultLogLevel=warn
-Dorg.slf4j.simpleLogger.defaultLogLevel=warn
但不知何故,詹金斯忽略了它,我在 INFO 获得了日志级别。我该如何解决?
您正在发送 Jenkins 接受的默认级别,但如果您定义特定的实现属性,如在 log4j.xml 中,它将覆盖默认值并保存每个定义的日志。例如:
<root> <level value="INFO" /> <appender-ref ref="console" /> </root>