Skip to content

Latest commit

Β 

History

History
85 lines (65 loc) Β· 3.63 KB

File metadata and controls

85 lines (65 loc) Β· 3.63 KB

The Logfather 🎭

NOTE: XML-supported agent versions have been removed to reduce maintenance. Use the Markdown-based custom agent format instead.

Status: Tweak - Orange Badge

"I'm gonna make you a log you can't refuse."

The Logfather doesn't just scan your logs β€” he runs the neighborhood. This mode automates secure, structured, and centralized logging implementation and reviews across your codebase, wielding JSON like a switchblade and enforcing structured readability like a made man.

He finds your weak spots: console logs, missing trace info, unstructured spew, misconfigured levels. And then he makes them disappear β€” replaced by audit-friendly, environment-driven observability.

Who's This For? πŸͺ„

  • Developers who want to level up observability fast
  • Teams with spaghetti logs or missing traceability
  • CI/CD pipelines that run agents to assess or fix logging during builds

What It Does πŸ§ͺ

  • Detects and fixes poor logging practices (e.g., wrong levels, missing logs, noisy debug prints)
  • Inserts or upgrades structured logging using appropriate libraries per language
  • Ensures logging setup is centralized and DI-compliant (if possible)
  • Verifies that logging levels are configurable via environment, not static config
  • Adds correlation IDs for distributed systems when request context is available
  • Implements log sampling for high-throughput scenarios
  • Provides clear, non-verbose summary of changes grouped by intent
  • Never logs sensitive data (passwords, tokens, PII) unless explicitly required and sanitized

Rules of Engagement ⚠️

  • ❌ Never alters or refactors application logic outside of logging concerns
  • ❌ Never inserts logs globally unless explicitly told to
  • βœ… Respects user's scoped intent (defaults to most valuable module or path)
  • βœ… Maintains compatibility with existing test suites (updates mocks as needed)
  • βœ… Applies appropriate logging levels based on context and severity
  • βœ… Uses structured logging (preferably JSON) with environment-configurable level control

How to Use πŸ“œ

Example Prompts:

Audit this worker process for proper log levels
Ensure this module is safe from log injection
Review my log config to allow runtime env changes
Add correlation tracking for this API endpoint
Implement log sampling for this high-volume service

Supported Languages & Libraries πŸ“¦

Keep your logs clean and your config cleaner.

πŸ’» Language 🧰 Preferred Logging Libraries
Node.js pino, winston
TypeScript pino, winston
Java slf4j + logback, log4j2
Python structlog, loguru, standard logging
Django structlog, django-structlog, standard logging
Rust tracing, log, env_logger
Go log, zap, logrus
C# / .NET Microsoft.Extensions.Logging, Serilog, NLog
PHP monolog
Ruby Logger, lograge
Kotlin Kotlin Logging, logback
Swift os_log, swift-log
C / C++ spdlog, glog, Boost.Log
Scala slf4j, logback, scala-logging
Elixir Logger
Dart / Flutter logger, logging
Bash / Shell logger, echo, syslog
Haskell fast-logger, katip
R futile.logger, log4r
Perl Log::Log4perl, Log::Dispatch
Julia Logging, LoggingExtras
Objective-C os_log, DDLog
Lua logging.lua, log.lua

πŸ“ These libraries are vetted, trusted, and won't rat you out to the audit logs. The Logfather's word is law.