brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: the logger integration sets one default log level and a louder one for a single integration

Logs
~/tips/tip-home-assistant-logger-default-and-logs

logger:

Lowers the Home Assistant log level for everything and raises it for one integration.

A noisy Home Assistant log hides the one line you came for. The logger integration lets you turn everything down and one integration up.

Add a logger: block to your configuration. default is the default level for everything, and logs is a list of integrations with their own level. The docs give entries like these:

logger:
  default: warning
  logs:
    homeassistant.components.mqtt: debug

The levels, from most to least severe, are critical, fatal, error, warning, warn, info, debug and notset. Without the logger integration the standard level is warning.

There are also two actions, logger.set_level for one or more integrations and logger.set_default_level for loggers without their own level. The logger page gives no YAML for them and points to a separate page.

You read the result under Settings, System, Logs.

Caveat: the logger page does not say whether a changed YAML block needs a restart, so I would check the configuration first and restart to be sure it applies. Debug level on a busy integration writes a lot, so lower it again when you have what you need.

Further reading: Logger (Home Assistant documentation), Troubleshooting your configuration (Home Assistant documentation)

Going deeper: Guide: Home Assistant backups in Docker, with a failure alert on your phone and a copy off the box

More Logs tips rotate 4 sort -m app.log worker.log | less sed -E 's/[0-9]+/N/g' app.log | sort | uniq -c | sort -rn | head -n 15 awk '$1 >= "2026-11-30T02:00" && $1 < "2026-11-30T03:00"' app.log rotate 14 All Logs tips (9) All topics

Link