Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verbosity #2

Open
Findus23 opened this issue Jan 26, 2017 · 2 comments
Open

verbosity #2

Findus23 opened this issue Jan 26, 2017 · 2 comments
Assignees

Comments

@Findus23
Copy link
Owner

organize errors, warnings, notices (with colors)

@Findus23 Findus23 self-assigned this Jan 26, 2017
@codingjoe
Copy link
Contributor

codingjoe commented May 15, 2019

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

@Findus23
Copy link
Owner Author

Glad you like it!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants