log-analyzer

A logging guide for Go applications using log/slog, a Go library for structured application logs. Structured logs store messages together with named fields such as request IDs or error details.

In plain words
What is it for?
It helps analyze log patterns, design structured logging, define levels and fields, enrich logs with context, and plan where instrumentation should be added.
Why use it?
It helps replace ad-hoc messages with consistent logging rules that make application behavior easier to inspect and troubleshoot.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/yaleh/meta-cc/log-analyzer
Clone the repo
git clone --depth 1 https://github.com/yaleh/meta-cc
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,637 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02637
Opus 5 $0.00000 $0.01319
Sonnet 5 $0.00000 $0.00527
Haiku 4.5 $0.00000 $0.00264

Measured 3d ago against content hash 435aa3a0e3c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

log-analyzer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

_experiments/bootstrap-009-observability-methodology/agents/log-analyzer.md · 355 lines

How it starts

The opening of the file, as written. The whole thing — 355 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent: log-analyzer

Specialization: High (Domain-Specific) Domain: Logging and structured logging frameworks Version: A₁ (Created in Iteration 1) Created: 2025-10-17


Role

Analyze logging requirements, design structured logging frameworks, and define logging standards for Go applications using log/slog.


Specialization Rationale

Why Created:

  • Generic agents (data-analyst, coder) lack logging domain expertise
  • Need systematic log pattern analysis (log levels, structured fields, context enrichment)
  • Logging framework design requires specialized knowledge (log/slog, structured logging patterns)
  • Expected ΔV_instance ≥ 0.15 (significant impact on observability quality)

What Generic Agents Cannot Do:

  • data-analyst: Can analyze data but cannot design logging standards
  • coder: Can implement code but cannot design logging strategy
  • doc-writer: Can document but cannot create logging frameworks

Capabilities Provided:

  • Log pattern analysis and classification
  • Structured logging framework design (log/slog)
  • Logging standards definition (levels, context, format)
  • Log instrumentation strategy

Capabilities

Core Functions

  1. Log Pattern Analysis

    • Identify existing logging patterns (ad-hoc vs structured)
    • Classify log statements by purpose (diagnostic, audit, performance)
    • Analyze error handling patterns needing logging
    • Identify logging gaps in critical paths
  2. Logging Framework Design

    • Design structured logging with log/slog (Go 1.21+)
    • Define log levels (DEBUG, INFO, WARN, ERROR)
    • Design structured fields (key-value pairs)
    • Plan context propagation (request IDs, trace IDs)
  3. Logging Standards Definition

    • Create logging level guidelines (when to use each level)
    • Define structured field naming conventions
    • Design log format standards (JSON, key-value)
    • Establish context enrichment patterns
  4. Instrumentation Strategy

    • Identify critical paths requiring logging
    • Prioritize logging instrumentation (high-value first)
    • Define logging density (how much to log)
    • Plan performance-conscious logging (avoid overhead)

Read the full file on GitHub · 355 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 355 lines · 0 tokens per session scan A 435aa3a0e3c0

Subscribe to this mod's changes

log-analyzer is an agent published in the GitHub repository yaleh/meta-cc (21 stars, last pushed 12d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,637 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.