Skip to main content

suffuse_log

Screenshot 2021-07-23 113324

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

Release files for suffuse-log 0.1

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

Source distribution (sdist)

Source distribution for suffuse-log 0.1
File Size Uploaded
suffuse_log-0.1.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for suffuse-log 0.1
File Interpreter ABI Platform
suffuse_log-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.1 kB

Release files / suffuse_log-0.1.tar.gz

Download URL suffuse_log-0.1.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3fd273b6f11d23f6cdd22fad5ee2822e609d24c9e4628b8392322d7b214c8827
BLAKE2b-256 checksum
How to use checksums
77ae6fcdc5a8da6415496f717e6fe4b53e08d8c1e33eb8570b05e6e403247feb
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / suffuse_log-0.1-py3-none-any.whl

Download URL suffuse_log-0.1-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a41d56e215e83f02e17671abb0cf092608819f202b3be1415d21254ed94cea4
BLAKE2b-256 checksum
How to use checksums
c2437671b343bf3bcb66dd02079dd33775772891cb9eb0d04c989c9fcca142b6
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1 This release

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