Skip to content

Instantly share code, notes, and snippets.

@frankwiles
Created May 19, 2016 20:54
Show Gist options
  • Save frankwiles/45822375fc203cc17c4a8c8a871ab367 to your computer and use it in GitHub Desktop.
Save frankwiles/45822375fc203cc17c4a8c8a871ab367 to your computer and use it in GitHub Desktop.
Logbook File Example
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