Created
October 2, 2010 08:14
-
-
Save kamawanu/607441 to your computer and use it in GitHub Desktop.
python detailed logging with console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if os.isatty(sys.stderr.fileno() ): | |
logging.getLogger().setLevel(logging.DEBUG) | |
logging.basicConfig( format='%(asctime)s %(levelname)s %(module)s:%(lineno)s %(message)s' ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment