使用系统 属性 配置 Log4J2 以使用 URL
Configure Log4J2 with a System property to use a URL
Log4j2 接受:
-Dlog4j.configurationFile=path/to/log4j2.xml
@见https://logging.apache.org/log4j/2.0/faq.html
但我们以前可以使用像 http://host/configuration.xml 这样的真实 URL。
有没有办法实现这个,或者它是否已被永久删除?
您可能想在 log4j2 Jira 问题跟踪器上为此提出功能请求。
-Dlog4j.configurationFile
实际上也接受 URL。
Log4j2 接受: -Dlog4j.configurationFile=path/to/log4j2.xml
@见https://logging.apache.org/log4j/2.0/faq.html
但我们以前可以使用像 http://host/configuration.xml 这样的真实 URL。
有没有办法实现这个,或者它是否已被永久删除?
您可能想在 log4j2 Jira 问题跟踪器上为此提出功能请求。
-Dlog4j.configurationFile
实际上也接受 URL。