smithery/neversight

python-logging

Use when choosing or configuring Python logging, especially deciding between stdlib logging and loguru for apps or CLIs.

Installation

$ npx skills add smithery/neversight --skill python-logging

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/neversight · top by installs.

npx skills add smithery/neversight

Browse all from smithery/neversight

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,265 B
  • docs SUMMARY.md 142 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Python Logging

Overview

Choose the logging system based on project needs. Core principle: stdlib logging for libraries and ecosystem integration, loguru for fast, simple app/CLI logging.

Quick Reference

Need Use
Library or long-lived service stdlib logging
Simple app or CLI loguru
Integrations (Sentry/OTel) stdlib logging

Decision Rules

Use stdlib logging when:

  • Building a reusable library
  • You need handler hierarchies or integration with ops tooling

Use loguru when:

  • You want minimal setup and readable output
  • You are building a small app or CLI

Example

Stdlib logger setup:

import logging

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
logger.info("App started")

Common Mistakes

  • Forcing loguru in a reusable library.
  • Mixing two logging systems without a clear boundary.

Red Flags

  • Logging recommendations with no rationale for library vs app use.

References

  • references/logging.md - stdlib logging patterns
  • references/loguru.md - loguru patterns