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

Add configurable log level #198

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

Mateusz-Grzelinski
Copy link
Collaborator

In this PR

  • add settings blender.addon.logLevel and blender.addon.logLevelGlobal
  • disable flask logs unless blender.addon.logLevelGlobal is set to debug
  • add colors
  • set default levels to
    • blender.addon.logLevelGlobal = warning
    • blender.addon.logLevel = info
  • changing log level required blender restart
  • our logger should not affect external loggers
  • convert every print to log
  • in future we might need a list of specific third party loggers to enable but i dont think it is needed now.

this is log produced by default log level config:
image

This is log level produced by blender.addon.logLevel = debug
image

And this is everithing set to debug:

image

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

Successfully merging this pull request may close these issues.

1 participant