Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

flexitest

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flexitest

HPE PC automation library.

pipPyPI
Version
2.2160.0
Weekly downloads
74
Maintainers
1

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)

Keywords

logging

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts