Skip to main content

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

Release files for ColorInfo 2.2.0

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

Source distribution (sdist)

Source distribution for ColorInfo 2.2.0
File Size Uploaded
ColorInfo-2.2.0.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ColorInfo 2.2.0
File Interpreter ABI Platform
ColorInfo-2.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.4 kB

Release files / ColorInfo-2.2.0.tar.gz

Download URL ColorInfo-2.2.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7e3744a7af3a01e7354c0357f948034ba76496649935e2793b9c5f86337abfdb
BLAKE2b-256 checksum
How to use checksums
00c5e7052bf7dccc768128493c5bc056ccc4ac3cd14e05cda9048ce85de1076f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.3

Release files / ColorInfo-2.2.0-py3-none-any.whl

Download URL ColorInfo-2.2.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
398360d2f54e9e77cc1caddae2db67cbedf757d29d2bd4f49fe6ba799204f6b8
BLAKE2b-256 checksum
How to use checksums
ee8ae3e7db9085458d817a3b3355c50345f36fe9ab0221758c3ed0b450c9c118
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

2.2.0 This release

2 release files

2.1.1

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

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