基础
from sqlalchemy import create_engine engine = create_engine("sqlite:///example.db", echo=True)
全局logger定义中,设置基础等级level为debug(检查logger的日志等级是否有被覆盖为非debug)
logging.basicConfig(level=logging.DEBUG)
DATABASES_LOG_LEVEL=DEBUG