|
Akka/Scala example source code file (jul.rst)
The jul.rst Akka example source codeJava Logging (JUL) ================== This extension module provides a logging backend which uses the `java.util.logging` (j.u.l) API to do the endpoint logging for `akka.event.Logging`. Provided with this module is an implementation of `akka.event.LoggingAdapter` which is independent of any `ActorSystem` being in place. This means that j.u.l can be used as the backend, via the Akka Logging API, for both Actor and non-Actor codebases. To enable j.u.l as the `akka.event.Logging` backend, use the following Akka config: loggers = ["akka.contrib.jul.JavaLogger"] To access the `akka.event.Logging` API from non-Actor code, mix in `akka.contrib.jul.JavaLogging`. This module is preferred over SLF4J with its JDK14 backend, due to integration issues resulting in the incorrect handling of `threadId`, `className` and `methodName`. This extension module was contributed by Sam Halliday. Other Akka source code examplesHere is a short list of links related to this Akka jul.rst source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.