Skip to content

Instantly share code, notes, and snippets.

@va3093
Last active January 8, 2018 16:07
Show Gist options
  • Save va3093/a28012626d9ce5ce6489626abb14459c to your computer and use it in GitHub Desktop.
Save va3093/a28012626d9ce5ce6489626abb14459c to your computer and use it in GitHub Desktop.
# Create file logger for debugging
import logging
f_log = logging.getLogger('spam_application')
f_log.setLevel(logging.DEBUG)
fh = logging.FileHandler('/Users/wilhelm.vanderwalt/Desktop/file_logger.log')
fh.setLevel(logging.DEBUG)
f_log.addHandler(fh)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment