pyLanguagetool icon indicating copy to clipboard operation
pyLanguagetool copied to clipboard

verbosity

Open Findus23 opened this issue 8 years ago • 2 comments

organize errors, warnings, notices (with colors)

Findus23 avatar Jan 26 '17 12:01 Findus23

Hi @Findus23 love the package, just stumbled on it. If you ever need help, let me know.

Regarding the issue at hand, a good approach is to use logging and to set up a console log writer in the __main__ function. This way you can easy handle different verbosity level, and they are also available for API uses and not only for CLI users.

If you need some inspiration, this might serve useful: https://github.com/codingjoe/deelight/blob/master/deelight/main.py

codingjoe avatar May 15 '19 15:05 codingjoe

Glad you like it!

I never got around to adding logging as honestly there isn't that much that could be logged.

Findus23 avatar May 15 '19 16:05 Findus23