Skip to main content

color log terminal and file

Project description

颜色日志

使用说明

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' 实时监控日志变化

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

color_log-1.0.9.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file color_log-1.0.9.tar.gz.

File metadata

  • Download URL: color_log-1.0.9.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for color_log-1.0.9.tar.gz
Algorithm Hash digest
SHA256 e04dffe5994463e05f3fa4792e288b9d89180daffaa5173db722580477245f2c
MD5 64c0533f0b6fb2283ef99a24671494e0
BLAKE2b-256 9fd6821629a2d22042b3605d1cfc9829e0b203d58e4949297b4651b0524601d0

See more details on using hashes here.

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