Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging Documentation for Apps vs Scripts #520

Open
marshalltech81 opened this issue Aug 28, 2023 · 0 comments
Open

Logging Documentation for Apps vs Scripts #520

marshalltech81 opened this issue Aug 28, 2023 · 0 comments

Comments

@marshalltech81
Copy link

marshalltech81 commented Aug 28, 2023

In following https://hacs-pyscript.readthedocs.io/en/latest/reference.html#logging, it is not readily apparent that the steps for setting logging on a script by script basis like illustrated here:

logger:
  default: info
  logs:
    custom_components.pyscript.file: info
    custom_components.pyscript.file.my_script.my_function: debug

would change if the script in question is really an app which appears to change these directions to:

logger:
  default: info
  logs:
    custom_components.pyscript.apps: info
    custom_components.pyscript.apps.my_script.my_function: debug

I was able to finally piece this together based on the output of the debugging log when I got this working using logger.set_level(**{"custom_components.pyscript": "debug"}) at the top of my script/app just to see how the debugging log would come through.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant