Skip to content

Instantly share code, notes, and snippets.

@lucky
Created November 5, 2010 00:19
Show Gist options
  • Save lucky/663446 to your computer and use it in GitHub Desktop.
Save lucky/663446 to your computer and use it in GitHub Desktop.
def get_logger(name, level=logging.DEBUG):
logging.basicConfig(level=level)
return logging.getLogger(name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment