Skip to content

Instantly share code, notes, and snippets.

@garywu
Last active September 29, 2015 21:20
Show Gist options
  • Save garywu/3200ff9a0a40ae5518d0 to your computer and use it in GitHub Desktop.
Save garywu/3200ff9a0a40ae5518d0 to your computer and use it in GitHub Desktop.
Python logging basic format
import logging
FORMAT = '%(filename)s(%(lineno)d) %(funcName)s: %(message)s'
logging.basicConfig(format=FORMAT, level=logging.DEBUG)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment