review-logging-patterns
Agent skill from evlog.dev.
What it does
- Setting up evlog in a new or existing project (any supported framework)
- Reviewing code for logging best practices
- Converting console.log statements to structured logging
- Improving error handling with better context
- Configuring log draining, sampling, or enrichment
- Designing wide events → references/wide-events.md
- Improving errors → references/structured-errors.md
Requirements & configuration
- Access the logger via c.get('log') in handlers. No useLogger() — use c.get('log') and pass it down explicitly, or use Express/Fastify/Elysia if you need useLogger() across async boundaries.
- | Manual token tracking in onFinish | ai.wrap() — middleware captures automatically |
Configuration: AXIOM_API_KEYAXIOM_DATASETOTLP_ENDPOINTOTEL_EXPORTER_OTLP_ENDPOINTHYPERDX_API_KEYHYPERDX_OTLP_ENDPOINTPOSTHOG_API_KEYPOSTHOG_HOST
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
Source
Repository: https://github.com/evlog.dev
review-logging-patterns FAQ
What does the review-logging-patterns skill do?
Review code for logging patterns and suggest evlog adoption. Guides setup on Nuxt, Next.js, SvelteKit, Nitro, TanStack Start, React Router, NestJS, Express, Hono, Fastify, Elysia, oRPC, Cloudflare Workers, and standalone TypeScript. Detects console.log spam, unstructured errors, and missing context. Covers wide events, structured errors, drain adapters (Axiom, OTLP, HyperDX, PostHog, Sentry, Better Stack, Datadog), sampling, enrichers, and AI SDK integration (token usage, tool calls, streaming metrics, telemetry integration, cost estimation, embedding metadata). Setting up evlog in a new or existing project (any supported framework) Reviewing code for logging best practices
What does review-logging-patterns require?
Access the logger via c.get('log') in handlers. No useLogger() — use c.get('log') and pass it down explicitly, or use Express/Fastify/Elysia if you need useLogger() across async boundaries. | Manual token tracking in onFinish | ai.wrap() — middleware captures automatically | Configuration keys: AXIOM_API_KEY, AXIOM_DATASET, OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_ENDPOINT, HYPERDX_API_KEY, HYPERDX_OTLP_ENDPOINT, POSTHOG_API_KEY, POSTHOG_HOST.
How do I install review-logging-patterns?
Run: npx -y skills add https://github.com/evlog.dev --skill review-logging-patterns --agent claude-code — the source lives at github.com/evlog.dev.
Maintain review-logging-patterns?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[review-logging-patterns on getagentictools](https://getagentictools.com/skills/evlog-dev-review-logging-patterns?ref=badge) npx agentictools info skills/evlog-dev-review-logging-patterns The second line is the CLI lookup for this page — handy in READMEs and docs.