[
https://issues.apache.org/jira/browse/LOG4J2-3192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17494377#comment-17494377
]
Ralph Goers commented on LOG4J2-3192:
-------------------------------------
OK. I have performed some investigation on this. When you set the property to
{code:java}
file:log4j.properties {code}
it is being passed to {{{}FileUtils.fileFromUri{}}}. At line 80 it does
{code:java}
return new File(uri);{code}
This call is throwing an exception because the [file schema
rfc|https://datatracker.ietf.org/doc/html/rfc8089] doesn't allow that syntax.
Therefore, neither does Log4j.
Due to this I am going to have to resolve this as "not a bug". As you have
already found the solution is to specify a relative path as a string, not a uri.
> log4j2.properties: monitorInterval has no effect since 2.13.2
> -------------------------------------------------------------
>
> Key: LOG4J2-3192
> URL: https://issues.apache.org/jira/browse/LOG4J2-3192
> Project: Log4j 2
> Issue Type: Bug
> Affects Versions: 2.14.1
> Reporter: Simon Ziller
> Assignee: Ralph Goers
> Priority: Blocker
> Fix For: 2.17.1
>
> Attachments: Log4j2Test.zip
>
>
> "Properties configuration files support the advertiser, monitorInterval,
> name, packages, shutdownHook, status, and verbose attrbutes." source:
> [https://logging.apache.org/log4j/2.x/manual/configuration.html#Properties]
> But adding "monitorInterval=5" to log4j2.properties seems to have no effect.
> Changes to log4j2.properties do not change the configuration.
> This Problem was already solved with LOG4J2-1263.
> Since the feature was not working with the latest version 2.14.1, I tried
> older versions. The Version 2.13.1 is the last one where monitorInterval is
> working in a property file configuration.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)