Guest User

Untitled

a guest
Jan 19th, 2018
86
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.  
  3. logging.basicConfig(filename='example.log',level=logging.DEBUG)
  4. logging.debug('This message should go to the log file')
  5. logging.info('So should this')
  6. logging.warning('And this, too')
Add Comment
Please, Sign In to add comment