Where is my debug log?

When I go to Settings | System | Logs

Do a clear then run the following in Dev tools i see no messages.

action: system_log.write
data:
  message: Foobar 
  level: debug

If I change the level to Error I see my message. Is this related to this token.jskn warning I’m getting?

Logger: homeassistant.components.file.sensor
Source: components/file/sensor.py:78
integration: File (documentation, issues)
First occurred: 10:30:39 PM (9 occurrences)
Last logged: 10:34:39 PM

File or data not present at the moment: token.json

I get this token.json warning without even trying to write to the log

The default logging level is “info”. “debug” is below that so you won’t see it. “error” is above “info” so you will see it.

See: https://www.home-assistant.io/integrations/logger/#log-levels

To change the log level: https://www.home-assistant.io/integrations/logger/#action-set_default_level

And after running this


action: logger.set_default_level
data:
  level: debug


Debug logs are still not showing up.

I even changed configuration.yaml


action: logger.set_default_level
data:
  level: debug


And still nothing shows up for info, debug.

That is not how you change your configuration.yaml file. This is:

logger:
  default: debug
  # default: info

You need to restart for it to take effect.

Still not showing, neither in the UI or the “raw logs”. Might be time for a reboot. Shouldn’t have too, but this is a docker instance in a VM.