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 2017/11/16 18:22:00 UTC
[jira] [Commented] (LOG4J2-2122) Log4j2 - Overriding log file
programaitically
[ https://issues.apache.org/jira/browse/LOG4J2-2122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16255731#comment-16255731 ]
Ralph Goers commented on LOG4J2-2122:
-------------------------------------
What is class Test and method m1? Is it supposed to be an appender?
> 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
> {code:java}
> class Test{
> public void m1(){
> setAppend(false)
> activateOptions()
> }
> }
> {code}
> Could someone please provide log4j2 code for above m1 method
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)