snowblink14 / smatch

Smatch tool: evaluation of AMR semantic structures
MIT License
63 stars 27 forks source link

User loggers instead of verbose and veryVerbose #7

Open thammegowda opened 7 years ago

thammegowda commented 7 years ago

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:

Error -> logger.error
Verbose -> logger.info
VeryVerbose -> logger.debug

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

References:

https://docs.python.org/3/library/logging.html