From d461675e6a7068c191e3ec640d0bc05fe3171e29 Mon Sep 17 00:00:00 2001 From: Nikita Melkozerov Date: Thu, 22 Jan 2015 23:15:44 +0500 Subject: [PATCH] =doc #16706 fixed wrong link and minor style fixes --- akka-docs/rst/java/logging.rst | 6 +++--- akka-docs/rst/scala/logging.rst | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/akka-docs/rst/java/logging.rst b/akka-docs/rst/java/logging.rst index bfaa7547b7..49de92d61b 100644 --- a/akka-docs/rst/java/logging.rst +++ b/akka-docs/rst/java/logging.rst @@ -26,7 +26,7 @@ as illustrated in this example: The first parameter to ``Logging.getLogger`` could also be any :class:`LoggingBus`, specifically ``system.eventStream()``; in the demonstrated case, the actor system’s address is included in the ``akkaSource`` -representation of the log source (see `Logging Thread and Akka Source in MDC`_) +representation of the log source (see `Logging Thread, Akka Source and Actor System in MDC`_) while in the second case this is not automatically done. The second parameter to ``Logging.getLogger`` is the source of this logging channel. The source object is translated to a String according to the following rules: @@ -306,7 +306,7 @@ the first case and ``LoggerFactory.getLogger(String s)`` in the second). final LoggingAdapter log = Logging.getLogger(system.eventStream(), "my.string"); Logging Thread, Akka Source and Actor System in MDC -------------------------------------- +--------------------------------------------------- Since the logging is done asynchronously the thread in which the logging was performed is captured in Mapped Diagnostic Context (MDC) with attribute name ``sourceThread``. @@ -348,7 +348,7 @@ For more details on what this attribute contains—also for non-actors—please `How to Log`_. More accurate timestamps for log output in MDC ------------------------------------------------- +---------------------------------------------- Akka's logging is asynchronous which means that the timestamp of a log entry is taken from when the underlying logger implementation is called, which can be surprising at first. diff --git a/akka-docs/rst/scala/logging.rst b/akka-docs/rst/scala/logging.rst index 7384b2e98a..af216ff7ec 100644 --- a/akka-docs/rst/scala/logging.rst +++ b/akka-docs/rst/scala/logging.rst @@ -342,7 +342,7 @@ the first case and ``LoggerFactory.getLogger(s: String)`` in the second). val log = Logging(system.eventStream, "my.nice.string") Logging Thread, Akka Source and Actor System in MDC -------------------------------------- +--------------------------------------------------- Since the logging is done asynchronously the thread in which the logging was performed is captured in Mapped Diagnostic Context (MDC) with attribute name ``sourceThread``. @@ -385,7 +385,7 @@ For more details on what this attribute contains—also for non-actors—please More accurate timestamps for log output in MDC ------------------------------------------------- +---------------------------------------------- Akka's logging is asynchronous which means that the timestamp of a log entry is taken from when the underlying logger implementation is called, which can be surprising at first.