[ 
https://issues.apache.org/jira/browse/LOG4J2-326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13739311#comment-13739311
 ] 

Sudharma Puranik commented on LOG4J2-326:
-----------------------------------------

[[email protected]] Just want to know with your configuration if I 
run this program what should happen

{noformat}
public static void main(String[] args) {
                ThreadContext.put("fruits", "apple");
                logger.info("This message is written to a new file with 
requestId in the file name");
                logger.info("Another message written to that same file");

                for (int i = 0; i <= 5000; i++) {
                        logger.debug(" Loop 1 " + i);
                }
                ThreadContext.remove("fruits");

//               ThreadContext.put("fruits", "orange");


                for (int i = 0; i <= 500000; i++) {
                        logger.debug("Loop 1 " + i);
                }
                logger.info("This message should be written to the default log 
file");

        }
{noformat}
                
> request to improve the RoutingAppender
> --------------------------------------
>
>                 Key: LOG4J2-326
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-326
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Appenders
>            Reporter: Sudharma Puranik
>
> Routing Appender has to be improved in a way that it can handle default 
> appenders in a better way.! Please refer this JIRA for more details
> https://issues.apache.org/jira/browse/LOG4J2-314

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to