Change documentation to consistently use quotes for log levels. See #2965

This commit is contained in:
Björn Antonsson 2013-02-20 10:07:45 +01:00
parent a94749d577
commit ba957c8356
5 changed files with 16 additions and 14 deletions

View file

@ -13,15 +13,15 @@ object LoggerSpec {
val defaultConfig = ConfigFactory.parseString(""" val defaultConfig = ConfigFactory.parseString("""
akka { akka {
stdout-loglevel = WARNING stdout-loglevel = "WARNING"
loglevel = DEBUG loglevel = "DEBUG"
} }
""").withFallback(AkkaSpec.testConf) """).withFallback(AkkaSpec.testConf)
val noLoggingConfig = ConfigFactory.parseString(""" val noLoggingConfig = ConfigFactory.parseString("""
akka { akka {
stdout-loglevel = OFF stdout-loglevel = "OFF"
loglevel = OFF loglevel = "OFF"
} }
""").withFallback(AkkaSpec.testConf) """).withFallback(AkkaSpec.testConf)
} }

View file

@ -96,11 +96,11 @@ A custom ``application.conf`` might look like this::
# Log level used by the configured loggers (see "loggers") as soon # Log level used by the configured loggers (see "loggers") as soon
# as they have been started; before that, see "stdout-loglevel" # as they have been started; before that, see "stdout-loglevel"
# Options: OFF, ERROR, WARNING, INFO, DEBUG # Options: OFF, ERROR, WARNING, INFO, DEBUG
loglevel = DEBUG loglevel = "DEBUG"
# Log level for the very basic logger activated during AkkaApplication startup # Log level for the very basic logger activated during AkkaApplication startup
# Options: OFF, ERROR, WARNING, INFO, DEBUG # Options: OFF, ERROR, WARNING, INFO, DEBUG
stdout-loglevel = DEBUG stdout-loglevel = "DEBUG"
actor { actor {
default-dispatcher { default-dispatcher {
@ -222,11 +222,11 @@ from the whole class path, it is easiest to utilize that functionality and
differentiate actor systems within the hierarchy of the configuration:: differentiate actor systems within the hierarchy of the configuration::
myapp1 { myapp1 {
akka.loglevel = WARNING akka.loglevel = "WARNING"
my.own.setting = 43 my.own.setting = 43
} }
myapp2 { myapp2 {
akka.loglevel = ERROR akka.loglevel = "ERROR"
app2.setting = "appname" app2.setting = "appname"
} }
my.own.setting = 42 my.own.setting = 42
@ -245,15 +245,17 @@ system is this
.. code-block:: ruby .. code-block:: ruby
akka.loglevel = WARNING akka.loglevel = "WARNING"
my.own.setting = 43 my.own.setting = 43
my.other.setting = "hello" my.other.setting = "hello"
// plus myapp1 and myapp2 subtrees // plus myapp1 and myapp2 subtrees
while in the second one, only the “akka” subtree is lifted, with the following while in the second one, only the “akka” subtree is lifted, with the following
result:: result
akka.loglevel = ERROR .. code-block:: ruby
akka.loglevel = "ERROR"
my.own.setting = 42 my.own.setting = 42
my.other.setting = "hello" my.other.setting = "hello"
// plus myapp1 and myapp2 subtrees // plus myapp1 and myapp2 subtrees

View file

@ -618,7 +618,7 @@ All these messages are logged at ``DEBUG`` level. To summarize, you can enable
full logging of actor activities using this configuration fragment:: full logging of actor activities using this configuration fragment::
akka { akka {
loglevel = DEBUG loglevel = "DEBUG"
actor { actor {
debug { debug {
autoreceive = on autoreceive = on

View file

@ -23,7 +23,7 @@ object FaultHandlingDocSample extends App {
import Worker._ import Worker._
val config = ConfigFactory.parseString(""" val config = ConfigFactory.parseString("""
akka.loglevel = DEBUG akka.loglevel = "DEBUG"
akka.actor.debug { akka.actor.debug {
receive = on receive = on
lifecycle = on lifecycle = on

View file

@ -698,7 +698,7 @@ All these messages are logged at ``DEBUG`` level. To summarize, you can enable
full logging of actor activities using this configuration fragment:: full logging of actor activities using this configuration fragment::
akka { akka {
loglevel = DEBUG loglevel = "DEBUG"
actor { actor {
debug { debug {
receive = on receive = on