Re: ThreadContext vs asynchronous app

2015-05-21 Thread Mikael Ståldal
A good start would be to implement what I suggest in https://issues.apache.org/jira/browse/LOG4J2-1010, add possibility to set the context map in calls to the methods in the Logger interface. That would make it possible to implement what I need on top of Log4j 2. I can't come up with any really

Re: ThreadContext vs asynchronous app

2015-05-20 Thread Gary Gregory
Mikael, Any thoughts on how to get this to work for you? Feel free to dig into the code, we are always looking new for contributors :-) Gary On Mon, May 18, 2015 at 10:25 AM, Mikael Ståldal mikael.stal...@magine.com wrote: No, not really. There is some discussion on this JIRA issue, but it

Re: ThreadContext vs asynchronous app

2015-05-18 Thread Mikael Ståldal
No, not really. There is some discussion on this JIRA issue, but it does not solve my problem: https://issues.apache.org/jira/browse/LOG4J2-1010 And even my suggestion in the JIRA issue is not ideal solution, just a possible workaround. What I really want is something which work like

Re: ThreadContext vs asynchronous app

2015-05-18 Thread Gary Gregory
Mikael, Did you get any help on this? Gary On Fri, May 8, 2015 at 1:51 AM, Mikael Ståldal mikael.stal...@magine.com wrote: I have an asynchronous web app (in Scala based on Twitter Finagle, not using Servlet API). I use Log4j 2.2 for logging, and I want to tag log messages with some

ThreadContext vs asynchronous app

2015-05-08 Thread Mikael Ståldal
I have an asynchronous web app (in Scala based on Twitter Finagle, not using Servlet API). I use Log4j 2.2 for logging, and I want to tag log messages with some information about requests (such as client IP address and authenticated user ID). In a synchronous Servlet based web app, you can use