review-logging-patterns

Diagnose logging patterns and propose evlog adoption across TypeScript frameworks.

21|Updated Aug 11, 2024
One-click install
npx skills add https://github.com/selfmail/selfmail --skill review-logging-patterns-selfmail
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-logging-patterns
Source: https://github.com/selfmail/selfmail/tree/main/.agents/skills/review-logging-patterns
Command: npx skills add https://github.com/selfmail/selfmail --skill review-logging-patterns-selfmail

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Review code for logging patterns and suggest evlog adoption. Identify console spam, unstructured errors, and missing context; propose structured wide events, drain pipelines, and AI SDK integration across popular frameworks.

Core Features & Use Cases

  • Code review for logging patterns and evlog adoption across Nuxt, Next.js, SvelteKit, Nitro, TanStack Start, React Router, NestJS, Express, Hono, Fastify, Elysia, Cloudflare Workers, and standalone TypeScript.
  • Documentation references with examples in references/wide-events.md, references/structured-errors.md, references/drain-pipeline.md, references/code-review.md.
  • Guidance on setting up wide events, structured errors, drain pipelines, enrichers, sampling, and anti-pattern detection.

Quick Start

Analyze a sample codebase to identify console spam and unstructured errors, then propose a transformed wide-event logging strategy.

Frequently Asked Questions about review-logging-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review logging patterns to replace console.log spam in TypeScript frameworks?

Logging pattern reviews identify console.log spam, unstructured errors, and missing context across TypeScript frameworks. The analysis diagnoses current codebases and proposes adopting structured wide events and drain pipelines for scalable, maintainable logging.

What are wide events and structured errors in code review logging?

Wide events and structured errors are logging patterns that replace unstructured console output with rich, contextual data. Code review analysis detects missing context and recommends aligning log entries with structured formats to improve observability across frameworks.

Does structured logging review work with Next.js, SvelteKit, and Cloudflare Workers?

Structured logging review works across Next.js, SvelteKit, Nitro, TanStack Start, React Router, NestJS, Express, Hono, Fastify, Elysia, Cloudflare Workers, and standalone TypeScript. It detects unstructured errors and proposes evlog adoption tailored to each framework.

How do I set up drain adapters and enrichers for scalable logging?

Setting up drain adapters and enrichers involves configuring drain pipelines that process wide events with added context and sampling. Code review analysis provides guidance and documentation references to implement these components for structured, scalable logging.

What is the best way to integrate AI SDK logging with structured wide events?

Integrating AI SDK logging with structured wide events ensures AI operations capture rich contextual data within drain pipelines. Code review identifies missing AI SDK integration and proposes structured logging patterns that align with wide events, enrichers, and sampling strategies.

What are common logging anti-patterns detected during code review?

Common logging anti-patterns include console.log spam, unstructured error outputs, and missing contextual data in log entries. Code review analysis detects these patterns and proposes wide events, structured errors, and drain pipeline adoption to resolve them.