Created
October 27, 2020 09:24
-
-
Save gonzalo123/4daa03232206efb6bae866647553b61d to your computer and use it in GitHub Desktop.
python logger
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 | |
logging.basicConfig( | |
format='%(asctime)s [%(levelname)s] %(message)s', | |
level='INFO', | |
datefmt='%d/%m/%Y %X') | |
logger = logging.getLogger(__name__) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment