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

Setup proper logging for Shishito #29

Open
sankaritan opened this issue Jan 29, 2015 · 0 comments
Open

Setup proper logging for Shishito #29

sankaritan opened this issue Jan 29, 2015 · 0 comments

Comments

@sankaritan
Copy link
Contributor

Some print statements are useful, some can be spamming console output with unnecessary information (that is why gid() print statements were commented out.

I suggest using python logging functionality such as:

import logging

logging.basicConfig(
    format='%(levelname) 10s %(asctime)s %(message)s',
    level=logging.ERROR
)
log = logging.getLogger('error_log')

log.error('something is wrong man.')
log.warning('something is funny man')

Code snippet above will print only "error" messages

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

No branches or pull requests

1 participant