Skip to main content

pflogf

PyPI version

Colorful logging formatter for fnndsc/pf* family. Its hardcoded format displays displays time, hostname, and calling function. The various logging levels (debug, info, warn, error, critical) are printed in different colors.

pflogf aims to replace pfmisc/debug.py using the standard Python logging module.

Screenshots

The output is intended for full-screen TTY output.

full screen

It tries to detect when not enough colums are available to display full information.

half screen

Examples

import logging
from pflogf import FnndscLogFormatter

logger = logging.getLogger(__name__)
handler = logging.StreamHandler()
handler.setFormatter(FnndscLogFormatter())
logger.addHandler(handler)

logger.setLevel(logging.DEBUG)
logger.debug('debug me as I am full of bugs')
logger.info('an informative statement')
logger.warning('you\'ll probably ignore this warning')
logger.error('error, problem exists between keyboard and chair')
logger.critical('critical failure, haha jk')

Metadata

Release files for pflogf 0.0.3

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

Source distribution (sdist)

Source distribution for pflogf 0.0.3
File Size Uploaded Provenance
pflogf-0.0.3.tar.gz 3.3 kB Without provenance Details

Release files / pflogf-0.0.3.tar.gz

Download URL pflogf-0.0.3.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b9d07eaf9731ce241c291b63e442501c6ad10072f9447548f4a05a7b377e57c3
BLAKE2b-256 checksum
How to use checksums
25f1fb97757c50e4326fc8963b78d266f3fd535f9562a54aa94474d47823d592
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Security for pflogf 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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