Skip to content

Instantly share code, notes, and snippets.

@munjeli
Created November 18, 2020 03:17
Show Gist options
  • Save munjeli/ad5add9a472f35fdfa811646b1c371d3 to your computer and use it in GitHub Desktop.
Save munjeli/ad5add9a472f35fdfa811646b1c371d3 to your computer and use it in GitHub Desktop.
logging config for python
fmt = "%(levelname)s\t%(funcName)s():%(lineno)i\t%(message)s"
logging.basicConfig(level=logging.DEBUG, format=fmt)
logger = logging.getLogger(__name__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment