sentry-setup-logging

Configure Sentry structured logging across JavaScript, Python, and Ruby platforms.

246|29|Updated Nov 10, 2025
One-click install
npx skills add https://github.com/getsentry/sentry-for-claude --skill sentry-setup-logging
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sentry-setup-logging
Source: https://github.com/getsentry/sentry-for-claude/tree/main/skills/sentry-setup-logging
Command: npx skills add https://github.com/getsentry/sentry-for-claude --skill sentry-setup-logging

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill configures Sentry's structured logging to capture and correlate logs across platforms, enabling faster debugging and improved observability.

Core Features & Use Cases

  • Structured Logging: Enable Sentry logger and integrate with common loggers (Pino, Winston, Loguru, etc.).
  • Console Capture: Optionally capture console logs into Sentry.
  • PII & Filtering: Guidance to filter noisy logs while preserving useful context.

Quick Start

Enable logging in your JS/TS app and emit a test log to verify it appears under Sentry Logs.

Frequently Asked Questions about sentry-setup-logging

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

FAQPage Schema
How do I set up structured logging with Sentry?

Structured logging with Sentry captures and correlates logs across platforms by enabling the Sentry logger in your SDK initialization. Configure `Sentry.init()` with logging options, optionally integrate with libraries like Pino or Winston, and logs will appear in Sentry's Logs section for faster debugging and observability.

Can I capture console logs into Sentry?

Yes, Sentry can optionally capture console logs by enabling console integration during SDK setup. This allows console output to be sent to Sentry alongside structured logs, improving visibility into application behavior without modifying your existing console calls.

Does Sentry logging work with my JavaScript framework?

Sentry logging integrates with JavaScript, TypeScript, React, Next.js, and other environments through platform-specific SDKs. The Skill detects your SDK version and provides framework-specific configuration to wire console logging and enable logs in `Sentry.init()`.

How do I filter noisy logs while keeping useful context?

Sentry supports log filtering and PII redaction during initialization to suppress verbose output while preserving debuggable information. Configure filters in your Sentry setup to tailor logging behavior to your needs without losing critical context.

What logging libraries does Sentry integrate with?

Sentry integrates with common logging libraries including Pino, Winston, Loguru, and Consola across JavaScript, Python, Ruby, and other platforms. Optional integrations let you wire existing logging infrastructure directly into Sentry for centralized log management.

How do I verify that logs are appearing in Sentry?

After enabling logging in `Sentry.init()`, emit a test log from your application and check the Logs section in your Sentry dashboard. The log should appear immediately, confirming that structured logging capture and console integration are working correctly.