0

I'm using the Python graphviz library.
While my app is using one log level (e.g. DEBUG), I'd like to set the graphviz log level to something else (e.g. WARNING).

There is no graphviz.set_loglevel() function.
Is there a way to do this without temporarily changing the global log level?

Adi Shavit
  • 16,743
  • 5
  • 67
  • 137

1 Answers1

0

I did not find a direct answer, but we can do it at the module level as described here.

logging.getLogger("graphviz").setLevel(logging.WARNING)
Adi Shavit
  • 16,743
  • 5
  • 67
  • 137