Skip to main content

ColorInfo 是一个使用Python3编写的简单的彩色日志工具,拥有简单、友好的语法,采用纯原始功能实现,无需依赖任何第三方模块

Project description

ColorInfo

介绍

ColorInfo 是一个使用Python3编写的简单的彩色日志工具,主要特性:

  • 使用简单
  • 彩色输出
  • 中文注释
  • 支持全部Python3版本(>=3.0)

更新内容

1.2.4

  • 独立实例参数配置

安装教程

执行下面的命令即可

pip3 install --upgrade ColorInfo

Demo

# -*- encoding: utf-8 -*-
"""
@File    :   demo.py
@Time    :   2022-10-26 23:51
@Author  :   坐公交也用券
@Version :   1.0
@Contact :   liumou.site@qq.com
@Homepage : https://liumou.site
@Desc    :   演示
"""
from ColorInfo import ColorLogger

log = ColorLogger(txt=True, fileinfo=True, basename=False)
log.info(msg='1', x="23")
log.error('2', '22', '222')
log.debug('3', '21')
log.warning('4', '20', 22)

效果

请在gitee项目主页查看图片

logg.png

项目主页

https://pypi.org/project/ColorInfo/

https://gitee.com/liumou_site/ColorInfo.git

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

ColorInfo-2.2.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

ColorInfo-2.2.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file ColorInfo-2.2.0.tar.gz.

File metadata

  • Download URL: ColorInfo-2.2.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.3

File hashes

Hashes for ColorInfo-2.2.0.tar.gz
Algorithm Hash digest
SHA256 7e3744a7af3a01e7354c0357f948034ba76496649935e2793b9c5f86337abfdb
MD5 e16d2d38f43dc335e2c6b08a27833f5f
BLAKE2b-256 00c5e7052bf7dccc768128493c5bc056ccc4ac3cd14e05cda9048ce85de1076f

See more details on using hashes here.

File details

Details for the file ColorInfo-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: ColorInfo-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.3

File hashes

Hashes for ColorInfo-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 398360d2f54e9e77cc1caddae2db67cbedf757d29d2bd4f49fe6ba799204f6b8
MD5 0f5a0ca520f38d0809a637a9c1b19b90
BLAKE2b-256 ee8ae3e7db9085458d817a3b3355c50345f36fe9ab0221758c3ed0b450c9c118

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