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

Q: what about logging? A: let's. #11

Closed
tilboerner opened this issue Aug 20, 2012 · 5 comments
Closed

Q: what about logging? A: let's. #11

tilboerner opened this issue Aug 20, 2012 · 5 comments
Assignees
Labels

Comments

@tilboerner
Copy link
Collaborator

... give it a try, that is. the mission: create some laughably simple logging interface that can be configured from a single point.

We should consider a proper setup for logging, because it seems practical: stuff on python.org.

I'm not saying we should go wild with loggers, but it seems flexible and configurable for little effort, and we could get rid of if debug: print('juchhe!'). The sooner we do this, the better. Thoughts?

@devsnd
Copy link
Owner

devsnd commented Aug 20, 2012

it should be uber simple to use. I guess it's reinventing the wheel for the 1000th time.

something like:

import logging as log
#set log level
log.basicConfig(level=logging.DEBUG)
#set shortcuts
log.d = log.debug
log.e = log.error

log.d('this is a debug message and goes to std-err')
log.e('this is an error message')

i just know myself. If the logging takes more letters than print then i'll problably not use it...

@tilboerner
Copy link
Collaborator Author

python seems to have decent logging support. it should be possible to wrap it in some extremely (re)usable interface of our making. i'll figure something out.

@devsnd
Copy link
Owner

devsnd commented Sep 2, 2012

already in 0.2

@devsnd devsnd closed this as completed Sep 2, 2012
@tilboerner
Copy link
Collaborator Author

... interface that can be configured from a single point.

there's more to do, i'd say.

@tilboerner
Copy link
Collaborator Author

so, yeah, i'd like to take that back. a field test shows that everything is very configurable.

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

No branches or pull requests

2 participants