Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. import logging
  2. logging.basicConfig(filename='example.log',level=logging.DEBUG)
  3. logging.debug('This message should go to the log file')
  4. logging.info('So should this')
  5. logging.warning('And this, too')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement