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

Claus Ibsen commented on CAMEL-3610:
------------------------------------

>From first experiment adding the exchange id. Notice we have 2 exchanges being 
>processed and the id is now logged in a column
{code}
2011-02-02 09:19:27,543 [main           ] INFO  DefaultCamelContext            
-                           - Apache Camel  (CamelContext: camel-1) started in 
0.724 seconds
2011-02-02 09:19:27,565 [main           ] INFO  foo                            
- l-50115-1296634766606-0-2 - Exchange[ExchangePattern:InOnly, BodyType:String, 
Body:Hello World]
2011-02-02 09:19:27,569 [main           ] INFO  bar                            
- l-50115-1296634766606-0-2 - Exchange[ExchangePattern:InOnly, BodyType:String, 
Body:Hello World]
2011-02-02 09:19:27,571 [main           ] INFO  foo                            
- l-50115-1296634766606-0-4 - Exchange[ExchangePattern:InOnly, BodyType:String, 
Body:Bye World]
2011-02-02 09:19:27,572 [main           ] INFO  bar                            
- l-50115-1296634766606-0-4 - Exchange[ExchangePattern:InOnly, BodyType:String, 
Body:Bye World]
2011-02-02 09:19:27,573 [main           ] INFO  MockEndpoint                   
-                           - Asserting: Endpoint[mock://result] is satisfied
2011-02-02 09:19:27,574 [main           ] INFO  DefaultCamelContext            
-                           - Apache Camel  (CamelContext:camel-1) is shutting 
down
{code}

> Use MDC for logging message id and/or transaction id
> ----------------------------------------------------
>
>                 Key: CAMEL-3610
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3610
>             Project: Camel
>          Issue Type: New Feature
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.7.0
>
>
> slf4j allows to use MDC. We should populate the MDC with exchange id and 
> transaction id, if route is transacted.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to