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:
parent
aff9cdb75e
commit
a94749d577
7 changed files with 126 additions and 22 deletions
|
|
@ -57,7 +57,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:
|
||||
|
|
@ -196,6 +196,21 @@ purposes as it contains exactly the default behavior.
|
|||
to look up the logger instance to use instead of the class’ name), and you
|
||||
might want to do this also in case you implement your own logging adapter.
|
||||
|
||||
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
|
||||
=======
|
||||
|
||||
|
|
@ -210,7 +225,7 @@ 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"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue