Skip to content

Instantly share code, notes, and snippets.

@guestl
Last active February 23, 2017 16:21
Show Gist options
  • Select an option

  • Save guestl/b9425b79b72a81727f10f536ac45e285 to your computer and use it in GitHub Desktop.

Select an option

Save guestl/b9425b79b72a81727f10f536ac45e285 to your computer and use it in GitHub Desktop.
simple example of logging
logging.basicConfig(filename='walker.log',
level=logging.DEBUG,
format='%(asctime)s - %(levelname)s - %(lineno)d - %(message)s')
logging.debug('#' * 50)
logging.debug('---- --- start processing params ---- ---')
logging.debug('sys.platform is %s' % sys.platform)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment