我正在对www.example.com文件使用wildfly22log4j.properties
where we need to add system property value - log4j1.compatibility=true. any help is appreciated. thanks.
iq3niunx1#
您可以在运行程序时通过命令行设置它。例如java myapp -Dlog4j1.compatibility="true"。请参阅https://www.ibm.com/docs/en/i/7.4?topic=java-system-properties如果您使用gradle,则可以将其包含在gradle.properties中。https://javabydeveloper.com/gradle-system-properties-via-command-line-step-by-step-example/
java myapp -Dlog4j1.compatibility="true"
1条答案
按热度按时间iq3niunx1#
您可以在运行程序时通过命令行设置它。例如
java myapp -Dlog4j1.compatibility="true"
。请参阅https://www.ibm.com/docs/en/i/7.4?topic=java-system-properties
如果您使用gradle,则可以将其包含在gradle.properties中。
https://javabydeveloper.com/gradle-system-properties-via-command-line-step-by-step-example/