logging-architect

Enforce LoggerProtocol logging and validate traceability in Python projects.

Updated Nov 25, 2025
One-click install
npx skills add https://github.com/NikhilVijayakumar/Yantra --skill logging-architect
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: logging-architect
Source: https://github.com/NikhilVijayakumar/Yantra/tree/main/.agent/skills/logging-architect
Command: npx skills add https://github.com/NikhilVijayakumar/Yantra --skill logging-architect

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill defines a framework for implementing structured, traceable logging using a LoggerProtocol, enabling end-to-end observability and eliminating unstructured prints.

Core Features & Use Cases

  • Enforces contextual, class-level logging with unique IDs for traceability.
  • Provides a small, platform-agnostic LoggerProtocol to enable dependency injection.
  • Includes a zero-print policy, enforcement scripts, and a traceability validator to ensure coverage.
  • Demonstrates how to map log entries to blueprint-style IDs for auditing.

Quick Start

Integrate the logging-architect patterns into a module by injecting a LoggerProtocol, replace all print() calls with logger calls, and run the traceability validator to verify ID coverage.

Frequently Asked Questions about logging-architect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardize Python logging across multiple modules for end-to-end traceability?▼

Achieve library-grade logging by enforcing a LoggerProtocol interface for dependency injection, replacing print calls with structured logger calls, and running a traceability validator to verify unique ID coverage across modules.

What is the best way to enforce a zero-print policy in a Python project?▼

Enforce a zero-print policy in Python by using provided enforcement scripts that scan for print statements and a traceability validator to ensure all logging passes through the standardized LoggerProtocol interface.

How do I implement dependency injection for logging in Python?▼

Implement logging dependency injection by defining a platform-agnostic LoggerProtocol, injecting it into classes, and using a frozen LogSettings config to manage logging behavior consistently across development and production environments.

Can I use this structured logging approach with existing Python testing workflows?▼

Yes, this structured logging approach applies to Python projects during development, testing, and production, providing consistent observability and traceability validation without disrupting existing testing workflows.

How do I map log entries to unique IDs for auditing?▼

Map log entries to unique IDs for auditing by applying class-level contextual logging patterns that assign blueprint-style IDs to each entry, ensuring complete traceability across the application.