Guest User

Untitled

a guest
Jan 16th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. # Create file logger for debugging
  2. import logging
  3. f_log = logging.getLogger('spam_application')
  4. f_log.setLevel(logging.DEBUG)
  5. fh = logging.FileHandler('/Users/wilhelm.vanderwalt/Desktop/file_logger.log')
  6. fh.setLevel(logging.DEBUG)
  7. f_log.addHandler(fh)
Add Comment
Please, Sign In to add comment