Log that utilizes ansi-codes to color and stylize log messages. Allows for configurable/conditional styling.
Project description
suffuse_log
Overview
suffuse_log is a python library that specializes in ansi-formatting of log messages. It targets local scripts that want to output colored logs to a command line terminal.
If you are leveraging logging plugins like Splunk, I don't recommend you use this.
However, If you have CLI's that you want to make more engaging, pretty, or additionally communicate their meaning with color, then this is the library for you.
Install
pip install suffuse_log
Getting Started
from suffuse_log import suffuse_formatter
logger = suffuse_formatter.defaultConfig(
name="my-suffuse-log", log_level_no=10
)
x.info('this is my message')
Features
- Individually color logging attributes!
- Conditionally color multiple logging attributes based on glob patterns or user-defined callables
- Defaults to the popular colorama ansi library
- Allows users to supply their own ansi-style dictionary
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
Built Distribution
File details
Details for the file suffuse_log-0.1.tar.gz
.
File metadata
- Download URL: suffuse_log-0.1.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fd273b6f11d23f6cdd22fad5ee2822e609d24c9e4628b8392322d7b214c8827 |
|
MD5 | dc99409f5e57d097cf12d405ec38fb3e |
|
BLAKE2b-256 | 77ae6fcdc5a8da6415496f717e6fe4b53e08d8c1e33eb8570b05e6e403247feb |
File details
Details for the file suffuse_log-0.1-py3-none-any.whl
.
File metadata
- Download URL: suffuse_log-0.1-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a41d56e215e83f02e17671abb0cf092608819f202b3be1415d21254ed94cea4 |
|
MD5 | 7557ee30d97b284ca919dcc572cd476b |
|
BLAKE2b-256 | c2437671b343bf3bcb66dd02079dd33775772891cb9eb0d04c989c9fcca142b6 |