Hi Lawrence!
I think what you're looking for is the other overload of the Logging apply
method:

val log = Logging(system, classOf[MyCustomerLogger])


I hope this helps, happy hakking!
​


On Fri, Aug 1, 2014 at 2:03 PM, Lawrence Wagerfield <
[email protected]> wrote:

> I would like to utilise Logback's MDC feature while still making use of
> Akka for asynchronous logging.
>
> The logging documentation
> <http://doc.akka.io/docs/akka/snapshot/scala/logging.html> hints the
> following:
>
>
>    1. val log: DiagnosticLoggingAdapter = Logging(this);
>
>
> However, the above method uses the type of 'this' as the logger, whereas I
> would like to specify another class:
>
>
>    1. val log: DiagnosticLoggingAdapter = Logging[MyCustomerLogger](this);
>
>  --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Cheers,
Konrad 'ktoso' Malawski
hAkker @ Typesafe

<http://typesafe.com>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to