From d26f4f95c2acf2e14a0f642533b62c4a16232610 Mon Sep 17 00:00:00 2001 From: "Art M. Gallagher" Date: Wed, 15 Jan 2020 17:44:37 +0000 Subject: [PATCH] Logger available namespaces (#11747) * logger available namespaces Explained how users can know against which namespaces they may declare a loglevel, and also mention docker command to view logs * added follow to docker log command to match other environment commands as requested by frenck --- source/_integrations/logger.markdown | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/source/_integrations/logger.markdown b/source/_integrations/logger.markdown index a3296894515..e80945e106e 100644 --- a/source/_integrations/logger.markdown +++ b/source/_integrations/logger.markdown @@ -88,7 +88,11 @@ where **namespace** is the ** currently logging. {% 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. +both of which are at root. They are logged by different APIs. + +If you want to know the namespaces in your own environment then check your log files on startup. +You will see INFO log messages from homeassistant.loader stating `loaded from `. +Those are the namespaces available for you to set a `log level` against. ### Log Levels @@ -146,3 +150,12 @@ the [SSH add-on](/addons/ssh/): ```bash $ tail -f /config/home-assistant.log ``` + +On Docker you can use your host command line directly - follow the logs dynamically with: + +```bash +# follow the log dynamically +docker logs --follow MY_CONTAINER_ID +``` + +To see other options use `--help` instead, or simply leave with no options to display the entire log.