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/04/14 15:58:00 UTC
[jira] [Commented] (LOG4J2-2820) updating the log4j configuration
(log4j.properties) dynamically at runtime
[ https://issues.apache.org/jira/browse/LOG4J2-2820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17083369#comment-17083369 ]
Ralph Goers commented on LOG4J2-2820:
-------------------------------------
Please see [http://logging.apache.org/log4j/2.x/manual/cloud.html]. Note that you do not need to use Spring Boot to get this support. Log4j supports using url's out of the box and if it is http will use If-Modified-Since.
> updating the log4j configuration (log4j.properties) dynamically at runtime
> ---------------------------------------------------------------------------
>
> Key: LOG4J2-2820
> URL: https://issues.apache.org/jira/browse/LOG4J2-2820
> Project: Log4j 2
> Issue Type: Question
> Components: Configuration
> Reporter: Ananda Reddy C
> Priority: Blocker
>
> Hi Team,
> Issue:- when we wanted to troubleshoot the issue, we enable the logging mode from WARN to eaither DEBUG or INFO and this change is required application restart.
> Now we are migrating our application to cloud, in the cloud environment, we will not have access to restart the application when there is a change in log4j configuration (log4j.properties).
> We wanted to understand is there a way to update the log4 configuration i.e. log4j.properties during run-time dynamically? so that we can avoid restarting the application.
> kindly let us know. if you have documentation for the above please point us or if you have apis to achieve the above please point us.
>
> Kindly note that currently we are using the log4j version 1.2.13.
>
> Thanks,
> Ananda Reddy C
--
This message was sent by Atlassian Jira
(v8.3.4#803005)