aboutsummaryrefslogtreecommitdiff
path: root/api/log.py
blob: 1b6067013e1117deaf338b838c447d8f4442fc0f (plain)
1
2
3
4
5
6
7
8
9
10
import logging

# logging module wrapper (same as db.py)
VERBOSE = logging.INFO
logging.basicConfig(format="[ %(levelname)s ]: %(message)s", level=VERBOSE)

# log functions
error = logging.error
info = logging.info
warning = logging.warning