You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Simon Ziller (Jira)" <ji...@apache.org> on 2021/12/15 15:09:00 UTC
[jira] [Comment Edited] (LOG4J2-3192) log4j2.properties: monitorInterval has no effect since 2.13.2
[ https://issues.apache.org/jira/browse/LOG4J2-3192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17459976#comment-17459976 ]
Simon Ziller edited comment on LOG4J2-3192 at 12/15/21, 3:08 PM:
-----------------------------------------------------------------
I've created a small tool "Log4j2Test.zip", including all libraries we use for our application including sub components.
The tool is running a loop 30 times creating one info message, one debug message and sleeping 10 seconds.
By default the log level is set to INFO, see "conf/log4j2.properties".
If you change the level during runtime (monitoriInterval = 10) nothing happens. If you restart the whole tool, the new log level is used.
Following Java version was used for test: Azul OpenJDK 64-Bit 1.8.0_282
was (Author: JIRAUSER280386):
I've created a small tool "Log4j2Test.zip", including all libraries we use for our application including sub components.
The tool is running a loop 30 times creating one info message, one debug message and sleeping 10 seconds.
By default the log level is set to INFO, see "conf/log4j2.properties".
If you change the level during runtime (monitoriInterval = 10) nothing happens. If you restart the whole tool, the new log level is used.
Following Java version was used for test:
Azul OpenJDK 64-Bit 1.8.0_282
> 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: Major
> 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)