Skip to main content

颜色日志

使用说明

from color_log import Logger

log = Logger()
log.info('message')
log.error('message')

linux系统使用 tail -F -s10 -n20 logs/log | perl -pe 's/(INFO)|(WARNING)|(ERROR)/\e[1;34m$1\e[0m\e[1;33m$2\e[0m\e[1;31m$3\e[0m/g' 实时监控日志变化

Metadata

Release files for color-log 1.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for color-log 1.0.9
File Size Uploaded Provenance
color_log-1.0.9.tar.gz 3.3 kB Without provenance Details

Release files / color_log-1.0.9.tar.gz

Download URL color_log-1.0.9.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e04dffe5994463e05f3fa4792e288b9d89180daffaa5173db722580477245f2c
BLAKE2b-256 checksum
How to use checksums
9fd6821629a2d22042b3605d1cfc9829e0b203d58e4949297b4651b0524601d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

Security for color-log 1.0.9

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page