From a658486d9bf0dbb56caf4da814c511f419d2cd3a Mon Sep 17 00:00:00 2001 From: Viktor Klang Date: Sun, 8 Apr 2012 01:10:19 +0200 Subject: [PATCH] #1931 - correcting logging config examples --- akka-docs/java/logging.rst | 32 +++++++++++++++++----------- akka-docs/scala/logging.rst | 42 +++++++++++++++++++++++-------------- 2 files changed, 46 insertions(+), 28 deletions(-) diff --git a/akka-docs/java/logging.rst b/akka-docs/java/logging.rst index d0a9e0bc5a..177cdb7295 100644 --- a/akka-docs/java/logging.rst +++ b/akka-docs/java/logging.rst @@ -72,9 +72,11 @@ by Actors: .. code-block:: ruby akka { - debug { - # enable DEBUG logging of all AutoReceiveMessages (Kill, PoisonPill and the like) - autoreceive = on + actor { + debug { + # enable DEBUG logging of all AutoReceiveMessages (Kill, PoisonPill and the like) + autoreceive = on + } } } @@ -83,9 +85,11 @@ If you want very detailed logging of all lifecycle changes of Actors (restarts, .. code-block:: ruby akka { - debug { - # enable DEBUG logging of actor lifecycle changes - lifecycle = on + actor { + debug { + # enable DEBUG logging of actor lifecycle changes + lifecycle = on + } } } @@ -94,9 +98,11 @@ If you want very detailed logging of all events, transitions and timers of FSM A .. code-block:: ruby akka { - debug { - # enable DEBUG logging of all LoggingFSMs for events, transitions and timers - fsm = on + actor { + debug { + # enable DEBUG logging of all LoggingFSMs for events, transitions and timers + fsm = on + } } } @@ -105,9 +111,11 @@ If you want to monitor subscriptions (subscribe/unsubscribe) on the ActorSystem. .. code-block:: ruby akka { - debug { - # enable DEBUG logging of subscription changes on the eventStream - event-stream = on + actor { + debug { + # enable DEBUG logging of subscription changes on the eventStream + event-stream = on + } } } diff --git a/akka-docs/scala/logging.rst b/akka-docs/scala/logging.rst index f8eaf13ff2..9b1fe42d3e 100644 --- a/akka-docs/scala/logging.rst +++ b/akka-docs/scala/logging.rst @@ -76,10 +76,12 @@ by Actors that use akka.event.LoggingReceive: .. code-block:: ruby akka { - debug { - # enable function of LoggingReceive, which is to log any received message at - # DEBUG level - receive = on + actor { + debug { + # enable function of LoggingReceive, which is to log any received message at + # DEBUG level + receive = on + } } } @@ -89,9 +91,11 @@ by Actors: .. code-block:: ruby akka { - debug { - # enable DEBUG logging of all AutoReceiveMessages (Kill, PoisonPill and the like) - autoreceive = on + actor { + debug { + # enable DEBUG logging of all AutoReceiveMessages (Kill, PoisonPill and the like) + autoreceive = on + } } } @@ -100,9 +104,11 @@ If you want very detailed logging of all lifecycle changes of Actors (restarts, .. code-block:: ruby akka { - debug { - # enable DEBUG logging of actor lifecycle changes - lifecycle = on + actor { + debug { + # enable DEBUG logging of actor lifecycle changes + lifecycle = on + } } } @@ -111,9 +117,11 @@ If you want very detailed logging of all events, transitions and timers of FSM A .. code-block:: ruby akka { - debug { - # enable DEBUG logging of all LoggingFSMs for events, transitions and timers - fsm = on + actor { + debug { + # enable DEBUG logging of all LoggingFSMs for events, transitions and timers + fsm = on + } } } @@ -122,9 +130,11 @@ If you want to monitor subscriptions (subscribe/unsubscribe) on the ActorSystem. .. code-block:: ruby akka { - debug { - # enable DEBUG logging of subscription changes on the eventStream - event-stream = on + actor { + debug { + # enable DEBUG logging of subscription changes on the eventStream + event-stream = on + } } }