Skip to main content

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

This version

0.1

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 hashes)

Uploaded Source

Built Distribution

logger_print-0.1-py3-none-any.whl (2.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page