Created
September 19, 2018 14:56
-
-
Save kdheepak/5640ddee2c2cff4313282a5c1827c6e6 to your computer and use it in GitHub Desktop.
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
import logging | |
log_format = ( | |
"%(asctime)s - %(levelname)s [%(filename)s:%(lineno)d] : %(message)s" | |
) | |
logger = logging.getLogger(__name__) | |
s = logging.StreamHandler() | |
f = logging.Formatter(log_format) | |
s.setFormatter(f) | |
logger.addHandler(s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment