python - 将 loguru 与 alembic 一起使用
问题描述
我想使用 Loguru 作为 Alembic 记录器处理程序。你知道我是否能做到以及如何做到吗?我只知道 alembic.ini 中有一些日志记录属性
现在我看到两个记录器在我的控制台中混合了一些东西:
2021-10-25 23:12:59.484 | DEBUG | __main__:main:19 - program started
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
2021-10-25 23:12:59.484 | DEBUG | __main__:main:19 - Hello World!
2021-10-25 23:12:59.484 | DEBUG | __main__:main:19 - program ended
解决方案
推荐阅读
- android - 如何将数据从 Android 后台服务传递到活动
- ios - Xcode 11:签名者的自签名根
- postgresql - 如何在 Postgres 中运行相当于 Excel 的 GAMMALN 函数?
- angular - Angular 中的域模块是什么意思?
- excel - 对不同目录中的多个 xlsx 文件进行编辑
- typescript - 用于自定义类型的 TS 语言服务器
- .net - HttpClient.GetStreamAsync 使连接半关闭
- python - 如何在 tkinter 中修复进度条的值(它只是在中间结束)
- angular - 如何使用 Angular 打开探索目录?
- visual-studio-code - .vscode-server 文件夹占用大量空间