ColorInfo 是一个使用Python3编写的简单的彩色日志工具,拥有简单、友好的语法
Project description
ColorInfo
介绍
ColorInfo 是一个使用Python3编写的简单的彩色日志工具,主要特性:
- 使用简单
- 彩色输出
- 中文注释
- 支持全部Python3版本(>=3.0)
更新内容
1.1.1
- 增加覆盖功能选项:
cover
, 默认关闭此功能 - 修改包名为:
ColorInfo
- 重构信息生成逻辑,简化重复代码
- 更新说明
安装教程
执行下面的命令即可
pip3 install 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
logger = ColorLogger()
logger.info("1", "2")
logger.debug("3", "4")
logger.warning("5")
logger.error("6", "7", "yes")
效果
请在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-1.1.1.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for ColorInfo-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d532c9159b43cc8517fae971419ea9b6c3f476e1878ce0e64e9ffa5b9b1edb1 |
|
MD5 | 90b81ecae7b4448806d38393102572c6 |
|
BLAKE2b-256 | 6c53957a1b24ba1dcb5c0c39303a284592fbdc22e6e4f422056c9ff3a6d2bdbb |