conf: Rename logging.levels to loglevels

Part of #280
This commit is contained in:
Stein Magnus Jodal 2013-04-15 20:39:57 +02:00
parent ee915fbf7a
commit a9a789aa8a
7 changed files with 10 additions and 10 deletions

View File

@ -97,11 +97,11 @@ Core configuration values
The file to dump debug log data to when Mopidy is run with the
:option:`mopidy --save-debug-log` option.
.. confval:: logging.levels/*
.. confval:: loglevels/*
The ``logging.levels`` config section can be used to change the log level
for specific parts of Mopidy during development or debugging. Each key in
the config section should match the name of a logger. The value is the log
The ``loglevels`` config section can be used to change the log level for
specific parts of Mopidy during development or debugging. Each key in the
config section should match the name of a logger. The value is the log
level to use for that logger, one of ``debug``, ``info``, ``warning``,
``error``, or ``critical``.

View File

@ -365,4 +365,4 @@ Is much better than::
If you want to turn on debug logging for your own extension, but not for
everything else due to the amount of noise, see the docs for the
:confval:`logging.levels/*` config section.
:confval:`loglevels/*` config section.

View File

@ -42,7 +42,7 @@ run :option:`mopidy --save-debug-log`, it will save the debug log to the file
``mopidy.log`` in the directory you ran the command from.
If you want to turn on more or less logging for some component, see the
docs for the :confval:`logging.levels/*` config section.
docs for the :confval:`loglevels/*` config section.
Debugging deadlocks

View File

@ -17,7 +17,7 @@ _logging_schema['console_format'] = String()
_logging_schema['debug_format'] = String()
_logging_schema['debug_file'] = Path()
_loglevels_schema = LogLevelConfigSchema('logging.levels')
_loglevels_schema = LogLevelConfigSchema('loglevels')
_audio_schema = ConfigSchema('audio')
_audio_schema['mixer'] = String()

View File

@ -3,7 +3,7 @@ console_format = %(levelname)-8s %(message)s
debug_format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n %(message)s
debug_file = mopidy.log
[logging.levels]
[loglevels]
pykka = info
[audio]

View File

@ -4,5 +4,5 @@ hostname = 127.0.0.1
port = 6680
static_dir =
[logging.levels]
[loglevels]
cherrypy = warning

View File

@ -20,7 +20,7 @@ def setup_logging(config, verbosity_level, save_debug_log):
def setup_log_levels(config):
for name, level in config['logging.levels'].items():
for name, level in config['loglevels'].items():
logging.getLogger(name).setLevel(level)