From cf39f008309390927e8307afa410bb44a6961926 Mon Sep 17 00:00:00 2001 From: Manolis Chalkiadakis <39441251+mxalk@users.noreply.github.com> Date: Fri, 25 Oct 2019 14:06:13 +0300 Subject: [PATCH] Clarification of namespace usage in logger (#10980) --- source/_integrations/logger.markdown | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/_integrations/logger.markdown b/source/_integrations/logger.markdown index 91c90ab03d4..a166e8fae6c 100644 --- a/source/_integrations/logger.markdown +++ b/source/_integrations/logger.markdown @@ -53,8 +53,16 @@ logger: # log level for the `aiohttp` Python package 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 ** currently logging. + {% configuration %} default: description: Default log level. See [log_level](#log-levels). @@ -71,6 +79,9 @@ logger: type: string {% 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 Possible log severity levels, listed in order from most severe to least severe, are: