mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 23:06:58 +00:00
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
This commit is contained in:
parent
13ab5fc254
commit
d26f4f95c2
@ -90,6 +90,10 @@ where **namespace** is the *<component_namespace>* currently logging.
|
||||
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.
|
||||
|
||||
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 <component> from <namespace>`.
|
||||
Those are the namespaces available for you to set a `log level` against.
|
||||
|
||||
### Log Levels
|
||||
|
||||
Possible log severity levels, listed in order from most severe to least severe, are:
|
||||
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user