mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Clarification of namespace usage in logger (#10980)
This commit is contained in:
parent
403c226601
commit
cf39f00830
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user