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
项目主页查看图片
项目主页
Project details
Release history Release notifications | RSS feed
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.0.0.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for ColorInfo-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df089fa9adb585bfe8979413f116d53479622d26af9468a361eacdd5010f2821 |
|
MD5 | d78da111ea19fa63350f347e287c01d5 |
|
BLAKE2b-256 | 9d313b95fb4cf8a094adc91130975024d6256dd7827b88fa14f37832344e4fec |