A simple package to redirect print statements to loguru logger.
Project description
logger_print
logger_print
是一个 Python 包,用于替代标准的 print
函数,将输出重定向到 loguru
日志系统,提供了更丰富的日志功能,包括日志级别控制、彩色输出、以及异步日志记录等。
安装
您可以通过 pip 安装 logger_print
:
pip install logger_print
快速开始
在任何现有的项目中,直接引入 from logger_print import print
即可
from logger_print import print
# 使用 print,现在它会通过 loguru 输出日志
print("Hello, logger_print!")
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
logger_print-0.1.tar.gz
(2.6 kB
view details)
Built Distribution
File details
Details for the file logger_print-0.1.tar.gz
.
File metadata
- Download URL: logger_print-0.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7aafd11140aeccebf0c6cd6295285974775a27fd76e3eb1cade97c3cef8a3c61 |
|
MD5 | a1f1c49f0e51ca04ddfd49942720cb61 |
|
BLAKE2b-256 | 83d7e19a4b3be7abf5b25e06ebf58b173ba0926082aeda41b1805bfb2eba9a40 |
File details
Details for the file logger_print-0.1-py3-none-any.whl
.
File metadata
- Download URL: logger_print-0.1-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72178e3760a62698a4f7af970526e2bd2b2509fdfc2da8487a3c6ab121c5469f |
|
MD5 | a3915f910c3ddd26aeed79f8dbd9469c |
|
BLAKE2b-256 | 7ea875bfaa168de347b35d00962db6f9432cfe43f48487123e4e9f2ec2df9b32 |