sentry-setup-logging

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

10|Updated Jan 7, 2026
One-click install
npx skills add https://github.com/troykelly/codex-skills --skill sentry-setup-logging-troykelly
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sentry-setup-logging
Source: https://github.com/troykelly/codex-skills/tree/main/external/skills/sentry-setup-logging
Command: npx skills add https://github.com/troykelly/codex-skills --skill sentry-setup-logging-troykelly

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the process of integrating Sentry's structured logging capabilities into various projects, ensuring better error tracking and observability.

Core Features & Use Cases

  • Multi-Platform Support: Configures Sentry logging for JavaScript (React, Next.js, Node.js), Python (Django, Flask, FastAPI), and Ruby (Rails) projects.
  • Structured Logging: Enables capturing logs with rich context, making them searchable and actionable in Sentry.
  • Console Log Capture: Automatically captures console.log and standard library logs.
  • Use Case: A developer needs to add detailed logging to their Python Flask application to diagnose intermittent errors. This Skill guides them through adding Sentry's SDK and configuring it to capture all INFO level logs and above, including any standard library logs.

Quick Start

Use the sentry-setup-logging skill to add Sentry logging to your Python project.

Frequently Asked Questions about sentry-setup-logging

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

FAQPage Schema
How do I configure Sentry structured logging in a Python Flask application?

To configure Sentry structured logging in Python Flask, you need to add the Sentry SDK and set it to capture standard library and INFO level logs. This enables rich, searchable context for diagnosing intermittent errors.

Can I integrate Sentry logging with existing Pino or Winston loggers in Node.js?

Yes, Sentry logging can integrate with third-party loggers like Pino and Winston in Node.js. This allows you to route your existing structured logs directly into Sentry for centralized error tracking and observability.

Does Sentry automatically capture console logs in JavaScript and Ruby projects?

Yes, Sentry automatically captures console logs in JavaScript and standard library logs in Ruby projects. Enabling this feature ensures that standard output is tracked without requiring manual log forwarding.

What minimum SDK version is required to enable Sentry structured logging features?

Sentry structured logging requires meeting minimum SDK version dependencies to use features like enableLogs. Ensuring your project meets these version requirements is necessary to support structured logging and custom log filtering.

How do I filter custom logs when setting up Sentry observability?

You can filter custom logs during Sentry observability setup by configuring log levels within the SDK. This custom log filtering ensures that only relevant logs, such as INFO level and above, are captured for actionable insights.