Created
October 11, 2018 06:07
-
-
Save yamyamyuo/36cd14893ad1fe20a7f231f720963a8b to your computer and use it in GitHub Desktop.
python logging basic config
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( | |
level=logging.INFO, | |
format= | |
'%(asctime)s pid:%(process)d %(levelname)s (%(filename)s:%(lineno)d)- %(message)s' | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment