占位包:Magic-log 日志工具(即将推出)
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
magic_logging-0.1.0.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file magic_logging-0.1.0.tar.gz.
File metadata
- Download URL: magic_logging-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1caa13e336d4c9d8a3f4661b872c6a286ee93e5cdb041efc205af7df43e88fb
|
|
| MD5 |
83e71118a417bb3ab780e0b66912beb3
|
|
| BLAKE2b-256 |
6ab8737644882f364bf07ee404a6ce84a243d547ab66f35edf5980c2ef013283
|
File details
Details for the file magic_logging-0.1.0-py3-none-any.whl.
File metadata
- Download URL: magic_logging-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ac0b25401b3593300cbce5777809978e8f5c013ec14c104b333567e443b26b1
|
|
| MD5 |
16efdc7287a677a3357da469fe025da7
|
|
| BLAKE2b-256 |
173688248d33534b1ede1f191fc266158edcd95214daa0af4bf44e0c80564ae0
|