一个开箱即用的 log 解决方案
Project description
XPyLogger
By 这里是小邓
介绍
XPyLog 是提供了一个开箱即用的日志库,较好的解决了Python 自带 logging 库使用繁琐,函数玄学的问题,支持 rich 库彩色输出。
依赖
- Python (3.9+)
- Rich
编译步骤
- 克隆 XLOGGER
- 放入程序文件夹
- 安装
rich:
pip install rich
from XPyLogger import *
函数介绍
XPyLogger.log(msg, level = INFO, sender = SENDER_MAIN)
输出一条日志
- msg:log信息
- level:日志等级
- sender:发送者
XPyLogger.close()
关闭日志本地记录文件
XPyLogger.INFO
日志等级-信息
XPyLogger.WARN
日至等级-警告
XPyLogger.ERR
日志等级-错误
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
XPyLogger-1.0.tar.gz
(2.6 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 XPyLogger-1.0.tar.gz.
File metadata
- Download URL: XPyLogger-1.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.1 importlib-metadata/4.8.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6287487c141433adb38910313c934e7bcf4e37810ff9fcce630829392d2d00a2
|
|
| MD5 |
34f4a0d6ee8912f56d73ee41bb1c8b17
|
|
| BLAKE2b-256 |
cbd7c23536d723e348bad599299b8c6a35e2a15f9ce15a168fbd044a661cb313
|
File details
Details for the file XPyLogger-1.0-py3-none-any.whl.
File metadata
- Download URL: XPyLogger-1.0-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.1 importlib-metadata/4.8.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfea626fce6b742a8c9e2cfd78abdc3749d726f50ce0f64e074899981ce0d101
|
|
| MD5 |
6c54e1022b6390e92ec76459424b43fe
|
|
| BLAKE2b-256 |
c11f4e9905f48493e4ab57825bd367ebdd76b887ab78aa4b713d8b2c95151a0c
|