Toolverse
All skills

logging-best-practices

by neondatabase

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

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Security
Views
1

About this skill

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

How to use

  1. Zainstaluj umiejętność w swoim środowisku agenta lub MCP server, wskazując repozytorium neondatabase/mcp-server-neon oraz ścieżkę do folderu logging-best-practices.

  2. Zastosuj wytyczne, gdy piszesz lub przeglądasz kod logowania — szczególnie przy dodawaniu console.log, logger.info lub podobnych instrukcji w swoich handlerach żądań.

  3. Przeanalizuj swoją obecną strategię logowania i zidentyfikuj miejsca, gdzie rozrzucasz wiele linii logów po całym kodzie obsługi żądania. Zamiast tego skonsoliduj wszystkie dane w jeden obiekt zdarzenia.

  4. Utwórz strukturę "wide event" — pojedyncze zdarzenie kontekstowe zawierające metadane żądania (method, path, requestId, timestamp), dane użytkownika, dane biznesowe (koszyk, stan transakcji) oraz wynik (status_code, outcome, duration_ms).

  5. Emituj to zdarzenie w bloku finally lub na koniec obsługi żądania, aby upewnić się, że wszystkie informacje — zarówno ze ścieżki sukcesu, jak i błędu — są zawarte w jednym logu strukturyzowanym.

  6. Upewnij się, że zdarzenie zawiera pola o wysokiej kardynalności (ID użytkownika, ID żądania) i wysokiej wymiarowości (wiele różnych pól), aby umożliwić zaawansowaną analitykę i debugowanie w narzędziach do obsługi logów.

Related skills

obsidian

by gapmiss

Comprehensive guidelines for Obsidian.md plugin development including all 27 ESLint rules, TypeScript best practices, memory management, API usage (requestUrl vs fetch), UI/UX standards, and submission requirements. Use when working with Obsidian plugins, main.ts files,

Security
14111

gmail-manager

by jeffvincent

Manage Gmail - send, read, search emails, manage labels and drafts. Use when user wants to interact with their Gmail account for email operations.

Security
17128

software-security

by project-codeguard

A software security skill that integrates with Project CodeGuard to help AI coding agents write secure code and prevent common vulnerabilities. Use this skill when writing, reviewing, or modifying code to ensure secure-by-default practices are followed.

Security
1678

better-auth-best-practices

by novuhq

Skill for integrating Better Auth - the comprehensive TypeScript authentication framework.

Security
1148

payload

by payloadcms

Use when working with Payload CMS projects (payload.config.ts, collections, fields, hooks, access control, Payload API). Use when debugging validation errors, security issues, relationship queries, transactions, or hook behavior.

Security
50171

academic-researcher

by Shubhamsaboo

Academic research assistant for literature reviews, paper analysis, and scholarly writing.\nUse when: reviewing academic papers, conducting literature reviews, writing research summaries,\nanalyzing methodologies, formatting citations, or when user mentions academic research,

Security
1260