Created
May 19, 2016 20:54
-
-
Save frankwiles/45822375fc203cc17c4a8c8a871ab367 to your computer and use it in GitHub Desktop.
Logbook File Example
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
from logbook import Logger, FileHandler | |
FileHandler('./output.log').push_application() | |
log = Logger('my-example-logger') | |
log.info("Testing") | |
# Output in ./output.log | |
# [2016-05-19 20:53:53.095826] INFO: my-example-logger: Testing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment