Adding in logging
This commit is contained in:
8
app/log.py
Normal file
8
app/log.py
Normal 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'
|
||||
)
|
||||
Reference in New Issue
Block a user