What problem does it solve?
Inconsistent logging across a Python codebase makes debugging painful and log output noisy. This Skill standardizes how log statements are written in the NetAlertX backend so every message follows the same import, level, format, and timestamp conventions.
Core Features & Use Cases
- Standardized Logger Usage: Mandates the
mylog function from the logger module instead of Python's built-in logging or print() calls.
- Five-Level Severity Model: Defines when to use
none, minimal, verbose, debug, and trace levels, from fatal errors down to per-item tracing.
- Message Formatting Rules: Requires
[Module] tag prefixes, f-strings inside list arguments, and automatic timestamps via timeNowTZ.
- Use Case: When adding a new device-handling feature, use this Skill to write log statements like
mylog("debug", [f"[device_handling] Processing MAC: {mac}"]) that match project conventions and pass code review.
Quick Start
Ask the AI to add or review log statements in a NetAlertX Python file following the project's logging standards.