Closed rholmboe closed 9 years ago
Most of modules in anyconfig should use a logger inherited from logging.getLogger("anyconfig"), if not that is a bug and please let me know about it.
Prior to the commit 87f013f, some warning messages will be shown in the default log level (loggging.INFO) but it's possible to suppres it by setting the log level of the logger of anyconfig, e.g. logging.getLogger("anyconfig").setLevel(logging.ERROR), I think.
Also in the commit e20c61e, I added the section about logging. Please take a look at it and let me know if I have something forgeten or missing:
Is this still an issue? If so, could you please let me know how the issue is happen? Then I'll make a few test cases to re-produce it and fix the problem.
Hi,
Sorry for the late update.I got it working now with our skeleton cli tool. This got it working for me as well as per your documentation.
logging.getLogger("anyconfig").setLevel(logging.DEBUG)
import anyconfig
Thank you for your assistance.
KR Richard
When importing anyconfig into existing project, there is no setting to be set to use existing project log level. Primary I would love seeing a logger inheritance or some sort of suppressor.