Clarification of namespace usage in logger (#10980)

This commit is contained in:
Manolis Chalkiadakis 2019-10-25 14:06:13 +03:00 committed by Franck Nijhof
parent 403c226601
commit cf39f00830

View File

@ -53,8 +53,16 @@ logger:
# log level for the `aiohttp` Python package # log level for the `aiohttp` Python package
aiohttp: error aiohttp: error
# log level for both 'glances_api' and 'glances' integration
homeassistant.components.glances: fatal
glances_api: fatal
``` ```
The log entries are in the form
*timestamp* *log-level* *thread* [**namespace**] *message*
where **namespace** is the *<component_namespace>* currently logging.
{% configuration %} {% configuration %}
default: default:
description: Default log level. See [log_level](#log-levels). description: Default log level. See [log_level](#log-levels).
@ -71,6 +79,9 @@ logger:
type: string type: string
{% endconfiguration %} {% endconfiguration %}
In the example, do note the difference between 'glances_api' and 'homeassistant.components.glances' namespaces,
both of which are at root. They are logged by different APIs.
### Log Levels ### Log Levels
Possible log severity levels, listed in order from most severe to least severe, are: Possible log severity levels, listed in order from most severe to least severe, are: