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

Pooja Pandey updated LOG4J2-3456:
---------------------------------
    Description: 
In our application we have migrated from log4j1.x to log4j1.x 2.17.2 bridge.  
With bridge 2.17.2/2.17/3-SNAPSHOT, we have noticed that we could not update 
log4j config properties at run time while same used to work with log4j1.x. It 
looks like there is some problem with PropertyConfigurator.configure(url) when 
we call it at run time to reconfigure properties programmatically at run time 
and it doesn't reset property value at run time.

 

 For reference, Java class files for Custom Logger, Custom Multiprocess Rolling 
Appender and Test program are attached along with cutom log4j properties 
file.[^CustomLogger.java][^customlog.properties][^RuntimeUpdateLoggingPropertiesTest.java]

  was:
In our application we have migrated from log4j1.x to log4j1.x 2.17.2 bridge.  
With bridge 2.17.2/2.17/3-SNAPSHOT, we have noticed that we could not update 
log4j config properties at run time while same used to work with log4j1.x. It 
looks like there is some problem with PropertyConfigurator.configure(url) when 
we call it at run time to reconfigure properties programmatically at run time 
and it doesn't reset property value at run time. (Will add more details in a 
separate ticket)

 

 For reference, Java class files for Custom Logger, Custom Multiprocess Rolling 
Appender and Test program are attached along with cutom log4j properties 
file.[^CustomLogger.java][^customlog.properties][^RuntimeUpdateLoggingPropertiesTest.java]


> Log4j 1.x 2.17.2 bridge - Runtime log4j property update doesn't work
> --------------------------------------------------------------------
>
>                 Key: LOG4J2-3456
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3456
>             Project: Log4j 2
>          Issue Type: Bug
>    Affects Versions: 2.17.2
>            Reporter: Pooja Pandey
>            Priority: Major
>         Attachments: CustomLogger.java, CustomLoggerFactory.java, 
> CustomMultiProcessRollingAppender.java, 
> RuntimeUpdateLoggingPropertiesTest.java, customlog.properties
>
>
> In our application we have migrated from log4j1.x to log4j1.x 2.17.2 bridge.  
> With bridge 2.17.2/2.17/3-SNAPSHOT, we have noticed that we could not update 
> log4j config properties at run time while same used to work with log4j1.x. It 
> looks like there is some problem with PropertyConfigurator.configure(url) 
> when we call it at run time to reconfigure properties programmatically at run 
> time and it doesn't reset property value at run time.
>  
>  For reference, Java class files for Custom Logger, Custom Multiprocess 
> Rolling Appender and Test program are attached along with cutom log4j 
> properties 
> file.[^CustomLogger.java][^customlog.properties][^RuntimeUpdateLoggingPropertiesTest.java]



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to