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
> information about requests (such as client IP address and authenticated
> user ID).
>
> In a synchronous Servlet based web app, you can use Log4j's TheradContext
> for this, but it doesn't work in Finagle's asynchronous environment since
> there is no correlation between threads and requests.
>
> How can I do this?
>
> --
> [image: MagineTV]
>
>  *Mikael Ståldal*
> Senior backend developer
>
>  *Magine TV*
>  mikael.stal...@magine.com
>  Regeringsgatan 25  | 111 53 Stockholm, Sweden  |   www.magine.com
>
>  Privileged and/or Confidential Information may be contained in this
> message. If you are not the addressee indicated in this message
> (or responsible for delivery of the message to such a person), you may not
> copy or deliver this message to anyone. In such case,
> you should destroy this message and kindly notify the sender by reply
> email.
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to