Created
October 10, 2019 17:26
-
-
Save JoshZastrow/62dfc4b420e4bdbdf963ce02d51cbafa 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
def setup_logger(): | |
'''Sets up logger''' | |
# formatter = logging.Formatter( | |
# '[%(asctime)s] {%(filename)s:%(lineno)d} %(levelname)s - %(message)s' | |
# ) | |
logging.basicConfig( | |
level=logging.INFO, | |
format='[%(asctime)s] {%(filename)s:%(lineno)d} %(levelname)s - %(message)s') | |
# handler = logging.StreamHandler() | |
logger = logging.getLogger(__name__) | |
# handler.setFormatter(formatter) | |
logger.setLevel(logging.INFO) | |
return logger |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment