Skip to main content

HPE PC automation library.

This project has been quarantined.

PyPI Admins need to review this project before it can be restored. While in quarantine, the project is not installable by clients, and cannot be being modified by its maintainers.

Read more in the project in quarantine help article.

Project description

PinLogger

A Python logging utility that lets you pin and tag important log messages for easy retrieval and filtering.

Installation

pip install pinlogger

Usage

from pinlogger import PinLogger

logger = PinLogger(__name__)

logger.info("Starting the process")
logger.pin("Database connection established", tags=["db", "startup"])
logger.warning("Cache miss for key: user:42")
logger.pin("User authentication failed", tags=["auth", "error"], level="error")

# Retrieve pinned messages
for entry in logger.pinned():
    print(entry.timestamp, entry.level, entry.message, entry.tags)

# Filter by tag
for entry in logger.pinned(tag="db"):
    print(entry.message)

# Clear pins
logger.clear_pins()

Features

  • Drop-in replacement for the standard library logging.Logger
  • Pin messages with tags for later retrieval
  • Filter pinned messages by tag
  • Clear all pins or specific tags
  • Works with all standard logging levels (debug, info, warning, error, critical)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flexitest-2.2160.0.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file flexitest-2.2160.0.tar.gz.

File metadata

  • Download URL: flexitest-2.2160.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for flexitest-2.2160.0.tar.gz
Algorithm Hash digest
SHA256 8087f09caab5941b26e934015967bbfc0239bcaa73ca2de39e00cdb1662d4605
MD5 d0c5626ae270d8e139be213269cdc8e0
BLAKE2b-256 e8e550e18331a882510f36f47a9ec8625524b20541d67379a787a2dfd4f6d272

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page