# logging-best-practices

> Claude/Codex skill by [@neondatabase](https://omgskills.com/library/neondatabase/index.md) · 654 stars · Updated 2026-10-16

Logging best practices focused on wide events (canonical log lines) for powerful debugging and analytics

## Install

```sh
git clone https://github.com/neondatabase/mcp-server-neon /tmp/mcp-server-neon && ln -s /tmp/mcp-server-neon/.agents/skills/logging-best-practices ~/.claude/skills/logging-best-practices
```

## From README

Logging Best Practices Skill Version: 1.0.0 Purpose This skill provides guidelines for implementing effective logging in applications. It focuses on wide events (also called canonical log lines) - a pattern where you emit a single, context-rich event per request per service, enabling powerful debugging and analytics. When to Apply Apply these guidelines when: Writing or reviewing logging code Adding console.log, logger.info, or similar Designing logging strategy for new services Setting up logging infrastructure Core Principles Wide Events (CRITICAL) Emit one context-rich event per request per service. Instead of scattering log lines throughout your handler, consolidate everything into a single structured event emitted at request completion. High Cardinality & Dimensionality (CRITICAL) Include fields with high cardinality (user IDs, request IDs - millions of unique values) and high dimensionality (many fields per event).

## Links

- HTML page: https://omgskills.com/skills/neondatabase/mcp-server-neon/logging-best-practices/
- GitHub: https://github.com/neondatabase/mcp-server-neon
- Author: [@neondatabase](https://omgskills.com/library/neondatabase/index.md)

## More from this repo

- [claimable-postgres](https://omgskills.com/skills/neondatabase/mcp-server-neon/claimable-postgres/index.md) — Provision instant temporary Postgres databases via Claimable Postgres by Neon (neon.new) with no login, signup, or...
   - [@neondatabase](https://omgskills.com/library/neondatabase/index.md) · 654 stars

## More skills by this author

- [neon](https://omgskills.com/skills/neondatabase/agent-skills/skills/neon/index.md) — Overview of Neon, a complete set of cloud backend primitives around Lakebase Postgres: Auth, Object Storage, Functions,...
   - [@neondatabase](https://omgskills.com/library/neondatabase/index.md) · 105 stars
- [neon-ai-gateway](https://omgskills.com/skills/neondatabase/agent-skills/skills/neon-ai-gateway/index.md) — One API and one credential for frontier and open-source LLMs and embedding models, built into your Neon branch and...
   - [@neondatabase](https://omgskills.com/library/neondatabase/index.md) · 105 stars
