Add the LogLevel OFF that can be used to turn off logging. See #2965

Conflicts:
	akka-actor/src/main/scala/akka/actor/ActorRefProvider.scala
	akka-docs/rst/java/logging.rst
	akka-docs/rst/scala/logging.rst
This commit is contained in:
Björn Antonsson 2013-02-19 11:29:17 +01:00
parent aff9cdb75e
commit a94749d577
7 changed files with 126 additions and 22 deletions

View file

@ -56,7 +56,7 @@ You almost definitely need to have logging set to DEBUG to use any of the option
.. code-block:: ruby
akka {
loglevel = DEBUG
loglevel = "DEBUG"
}
This config option is very good if you want to know what config settings are loaded by Akka:
@ -153,6 +153,20 @@ If you want to see all messages that are received through remoting at DEBUG log
Also see the logging options for TestKit: :ref:`actor.logging-java`.
Turn Off Logging
----------------
To turn off logging you can configure the log levels to be ``OFF`` like this.
.. code-block:: ruby
akka {
stdout-loglevel = "OFF"
loglevel = "OFF"
}
The ``stdout-loglevel`` is only in effect during system startup and shutdown, and setting
it to ``OFF`` as well, ensures that nothing gets logged during system startup or shutdown.
Loggers
=======
@ -167,7 +181,7 @@ Here you can also define the log level.
# Loggers to register at boot time (akka.event.Logging$DefaultLogger logs
# to STDOUT)
loggers = ["akka.event.Logging$DefaultLogger"]
# Options: ERROR, WARNING, INFO, DEBUG
# Options: OFF, ERROR, WARNING, INFO, DEBUG
loglevel = "DEBUG"
}