Created
March 14, 2012 12:46
-
-
Save mbr/2036228 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding=utf8 | |
import logbook | |
handler = logbook.NullHandler(bubble=False) | |
handler.push_application() | |
logbook.info('Hello, world') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding=utf8 | |
import logbook | |
handler = logbook.NullHandler(bubble=True) | |
handler.push_application() | |
logbook.info('Hello, world') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding=utf8 | |
import logbook | |
handler = logbook.NullHandler() | |
handler.push_application() | |
logbook.info('Hello, world') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding=utf8 | |
import logbook | |
logbook.info('Hello, world') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# compare: http://packages.python.org/Logbook/api/handlers.html | |
$ python logbook-test.py | |
$ python logbook-test2.py | |
$ python logbook-test3.py | |
$ python logbook-test4.py | |
[2012-03-14 12:45] INFO: Generic: Hello, world |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment