Closed m-rey closed 4 years ago
Can you add the code to set the log level in https://github.com/acipm/kibicara/blob/0e53b900c07f44066aeeaf0a26b93b3993b3e2a5/kibicara/kibicara.py#L26 to complete this feature?
ETA: Would probably make sense to set the global log level with basicConfig
to WARNING
and then do a getLogger('kibicara').setLevel(...)
to only affect the log level for our application. This way we could also get rid of https://github.com/acipm/kibicara/blob/0e53b900c07f44066aeeaf0a26b93b3993b3e2a5/kibicara/kibicara.py#L27
This adds a way to capture how verbose the logger should be, based on the amount of
v
flags you use (so-v
vs-vv
, for example).To set the logging level, something like
could be used