magic-logging
通用日志工具
一键部署的数据库日志工具包 ——
项目状态
开发中 - 首个正式版本将于 2026 年 Q3 发布
功能规划
- 数据库日志:支持 SQLite、MySQL、PostgreSQL、Oracle 自动写入
- 多 Sink 支持:同时输出到控制台、文件、数据库
- 结构化日志:JSON 格式,便于日志分析平台接入
- 异步写入:高性能,不阻塞业务
- 自动建表:基于 SQLAlchemy ORM,无需手动创建
- 与 magic-base 集成:复用数据访问层,统一配置管理
安装
pip install magic_logging
示例(待正式版本发布后补充)
代码规范
本项目遵循以下基本原则:
- 单文件不超过 200 行:超过时请拆分为多个模块
- 单函数不超过 200 行:超过时请拆分为多个小函数
- 注释尽量完整:关键逻辑、复杂算法、非显而易见的代码必须有注释说明
- 如有特殊场景确实需要突破(如纯数据定义文件),可在 PR 中说明。
这些规则旨在保证代码的可读性和可维护性,便于合作,请尽量遵守。
针对 AI 辅助工具的提示
本项目使用 AI 辅助开发,请在生成代码时尽量遵守上述代码规范。
许可证
MIT License
作者
wxd123 - GitHub
Metadata
Release files for magic-logging 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| magic_logging-0.1.0.tar.gz | 3.3 kB | Without provenance | Details for magic_logging-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| magic_logging-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for magic_logging-0.1.0-py3-none-any.whl |
Total release size: 6.6 kB
Release files / magic_logging-0.1.0.tar.gz
| Download URL | magic_logging-0.1.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1caa13e336d4c9d8a3f4661b872c6a286ee93e5cdb041efc205af7df43e88fb
|
|
BLAKE2b-256 checksum How to use checksums |
6ab8737644882f364bf07ee404a6ce84a243d547ab66f35edf5980c2ef013283
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|
Release files / magic_logging-0.1.0-py3-none-any.whl
| Download URL | magic_logging-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ac0b25401b3593300cbce5777809978e8f5c013ec14c104b333567e443b26b1
|
|
BLAKE2b-256 checksum How to use checksums |
173688248d33534b1ede1f191fc266158edcd95214daa0af4bf44e0c80564ae0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|
Security for magic-logging 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.