Skip to content

Instantly share code, notes, and snippets.

@dirkakrid
Forked from zhangchunlin/logger_example.py
Created October 11, 2016 08:26
Show Gist options
  • Save dirkakrid/b661ade9fc69306d3823460deedce04a to your computer and use it in GitHub Desktop.
Save dirkakrid/b661ade9fc69306d3823460deedce04a to your computer and use it in GitHub Desktop.
python snippet
import logging
logging.basicConfig(level=logging.INFO,
format='%(asctime)s %(levelname)s %(message)s',
datefmt='%Y-%m-%d %H:%M:%S')
log = logging.getLogger(__name__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment