Skip to content

Instantly share code, notes, and snippets.

@yamyamyuo
Created October 11, 2018 06:07
Show Gist options
  • Save yamyamyuo/36cd14893ad1fe20a7f231f720963a8b to your computer and use it in GitHub Desktop.
Save yamyamyuo/36cd14893ad1fe20a7f231f720963a8b to your computer and use it in GitHub Desktop.
python logging basic config
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