[
https://issues.apache.org/jira/browse/LOG4J2-2122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Durgarao updated LOG4J2-2122:
-----------------------------
Description:
In log4j1 we have an option to overriding the log file programatically by
calling below 2 methods together
# setAppend(false);
# activateOptions();
What is equivalent option in log4j2?. Below is my sample code
class Test{
public void m1(){
setAppend(false)
activateOptions()
}
}
Could someone please provide log4j2 code for above m1 method
was:
In log4j1 we have an option to overriding the log file programatically by
calling below 2 methods together
# setAppend(false);
# activateOptions();
What is equivalent option in log4j2?. Below is my sample code
class Test{
public void m1(){
setAppend(false);
activateOptions();
}
}
Could someone please provide log4j2 code for above m1 method
> Log4j2 - Overriding log file programaitically
> ---------------------------------------------
>
> Key: LOG4J2-2122
> URL: https://issues.apache.org/jira/browse/LOG4J2-2122
> Project: Log4j 2
> Issue Type: Question
> Reporter: Durgarao
>
> In log4j1 we have an option to overriding the log file programatically by
> calling below 2 methods together
> # setAppend(false);
> # activateOptions();
> What is equivalent option in log4j2?. Below is my sample code
> class Test{
> public void m1(){
> setAppend(false)
> activateOptions()
> }
> }
> Could someone please provide log4j2 code for above m1 method
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)