Adding in logging

This commit is contained in:
Scott Idem
2020-09-14 17:49:25 -04:00
parent d3b6f46368
commit 6bee9c19cf
3 changed files with 53 additions and 1 deletions

8
app/log.py Normal file
View File

@@ -0,0 +1,8 @@
import logging
log = logging.getLogger('root')
log.setLevel(logging.ERROR) # DEBUG > INFO > WARNING > ERROR > CRITICAL
logging.basicConfig(
format='[%(asctime)s] %(levelname)s @ %(module)s.%(funcName)s()#%(lineno)d: %(message)s'
)