You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (Jira)" <ji...@apache.org> on 2020/10/25 04:48:00 UTC

[jira] [Closed] (LOG4J2-2905) when we set the property "monitorInterval" and appenders/loggers are getting messed-up

     [ https://issues.apache.org/jira/browse/LOG4J2-2905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers closed LOG4J2-2905.
-------------------------------
    Resolution: Not A Problem

Closing at user'request.

> when we set the property "monitorInterval" and appenders/loggers are getting messed-up
> --------------------------------------------------------------------------------------
>
>                 Key: LOG4J2-2905
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2905
>             Project: Log4j 2
>          Issue Type: Question
>          Components: Appenders
>    Affects Versions: 2.13.3
>            Reporter: Ananda Reddy C
>            Priority: Blocker
>         Attachments: image-2020-09-10-20-57-53-861.png, log4j2.properties
>
>
> Hi Team,
> Our product is consuming the log4j2.x version 2.13.3. We have a requirement to detect the changes made to log4j2.properties file and apply those changes to log4j  automatically in the runtime. To achieve this requirement we are using the "monitorInterval" in the log4j2.properties file.  
> what happens is, the changes to the log4j2.properties file are getting applied i.e. if we change the log level from WARN to DEBUG, the changes are being applied, I could see the debug level messages in the log file.
> Here issue is, our component has, it's own tracing which is aspectJ based. For tracing, component has its own loggers/appenders i.e. trace information would go to the file called dfctrace.log, at the same time, component also has log4j logging, the log4j logging would go to the file called log4j.log.
> While tracing is on and with the property "monitorInterval" configured in the log4j2.properties, when we do changes to the log4j.properties file (i.e. log level change from WARN to DEBUG), the trace information is getting written to the log4j.log instead of dfctrace.log.
> Here somehow log4j2 is making the loggers/appenders messed-up when log4j applies the changes made to the log4j.properties file.
> Could you verify why log4j is not keeping the loggers/appenders in previous state when it applies the changes made to the log4j.properties file.
> Please let me know, for any further information.
> Thanks,
> Ananda Reddy C



--
This message was sent by Atlassian Jira
(v8.3.4#803005)