On Sat, Nov 8, 2014 at 7:16 PM, <[email protected]> wrote: > Thanks! That does work. I was kind of staying away from the apply methods > in the Akka classes, since I was considering them Scala specific. Is there > any "danger" in using those? >
No danger. They are no special from java perspective. However, by convention we have not used apply for Java APIs. I'll create a ticket to add an alias method named create for this. /Patrik > > Nils-H > > On Friday, November 7, 2014 6:35:48 PM UTC+1, Martynas Mickevičius wrote: >> >> Hi, >> >> there is Logging.apply(logSource: Actor) >> <https://github.com/akka/akka/blob/fe1718c88f19c95785f479ffa186959146cbca04/akka-actor/src/main/scala/akka/event/Logging.scala#L526-L530> >> which >> you can use with AbstractActor. >> >> On Thu, Nov 6, 2014 at 10:40 PM, <[email protected]> wrote: >> >>> I'm testing the experimental Java 8 lambda support with akka and >>> AbstractActor, but I cannot seem to find a way to use the MDC feature this >>> way. With an untyped actor, I can do Logging.getLogger(this) and get a >>> DiagnosticLoggingAdapter with MDC support. However, since AbstractActor >>> does not extend UntypedActor, I can only get a regular LoggingAdapter, with >>> no way to set the MDC. Am I missing something? Is it possible with >>> AbstractActor, or do I need to switch back to using UntypedActor? >>> >>> -- >>> >>>>>>>>>> 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. >>> >> >> >> >> -- >> Martynas Mickevičius >> Typesafe <http://typesafe.com/> – Reactive >> <http://www.reactivemanifesto.org/> Apps on the JVM >> > -- > >>>>>>>>>> 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. > -- Patrik Nordwall Typesafe <http://typesafe.com/> - Reactive apps on the JVM Twitter: @patriknw -- >>>>>>>>>> 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.
