我正在寻找一种方法让python记录器模块登录到数据库并在数据库关闭时回退到文件系统.
所以基本上有两件事:如何让记录器记录到数据库以及如何在db关闭时使其落入文件记录.
python database logging
database ×1
logging ×1
python ×1