You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background:
👍 for #5 (make it as PyPi package)
That will make smatch as an easily accessible library.
It will be nice to replace prints with log statements (so that library users can easily control)
Then, we can set log level from CLI args for backward compatibiltiy.
default level = WARNING
When Verbose flag is enabled, level=INFO
When VeryVerbose flag is enabled, level=DEBUG
This is a fairly direct conversion of the code to use logging. It
could be made more Pythonic.
This also gets rid of the ERROR_LOG and DEBUG_LOG variables for
redirecting error and debug messages. They could only be used when
importing smatch as a library and both pointed to stderr by
default. The logging messages are prefixed by DEBUG, ERROR, etc., so
if anything they are now easier to distinguish. Getting support for
separate streams would now require some logging Handlers and Filters,
which are a pain to set up.
Resolvessnowblink14#7
Background:
👍 for #5 (make it as PyPi package)
That will make smatch as an easily accessible library.
It will be nice to replace prints with log statements (so that library users can easily control)
Mappings:
Then, we can set log level from CLI args for backward compatibiltiy.
default level = WARNING
When
Verbose
flag is enabled, level=INFOWhen
VeryVerbose
flag is enabled, level=DEBUGReferences:
https://docs.python.org/3/library/logging.html
The text was updated successfully, but these errors were encountered: