sentry-setup-logging
Originally fromgetsentry/sentry-agent-skills
Installation
SKILL.md
Setup Sentry Logging
Configure Sentry's structured logging feature.
Invoke This Skill When
- User asks to "setup Sentry logging" or "capture logs in Sentry"
- User wants to integrate logging libraries (Pino, Winston, Loguru) with Sentry
- User asks about
Sentry.loggerorsentry_sdk.logger
Important: The SDK versions, API names, and code samples below are examples. Always verify against docs.sentry.io before implementing, as APIs and minimum versions may have changed.
Quick Reference
| Platform | Min SDK | Enable Flag | Logger API |
|---|---|---|---|
| JavaScript | 9.41.0+ | enableLogs: true |
Sentry.logger.* |
| Python | 2.35.0+ | enable_logs=True |
sentry_sdk.logger.* |
| Ruby | 5.24.0+ | config.enable_logs = true |
Sentry.logger.* |