Logs
Unseenr captures structured log entries sent via the Sentry SDK's experimental logging feature or directly through the ingest API.
Log Levels
| Level | Description |
|---|---|
| DEBUG | Verbose diagnostic information |
| INFO | General informational messages |
| WARNING | Potential issues that don't block execution |
| ERROR | Errors that affect functionality |
| FATAL | Critical failures requiring immediate attention |
How Logs Are Ingested
Logs are sent as part of the Sentry envelope format. The SDK sends log items with the type log, which Unseenr processes separately from error events.
Each log entry contains:
- Timestamp: When the log was created
- Level: One of the five levels above
- Message: The log message body (string or OTel
stringValue) - Trace ID: For correlating logs with distributed traces
- Span ID: For correlating with specific spans
- Attributes: Custom key-value metadata
Quota
Log envelopes share the event quota with error events. Each log envelope counts as one unit against your monthly event limit.
Viewing Logs
Navigate to your project's Logs page to see all captured log entries. Logs are displayed in reverse chronological order and can be filtered by level.
Enabling Logs in the SDK
To send logs from the Sentry SDK, enable the experimental logging feature:
import * as Sentry from "@sentry/browser";
Sentry.init({
dsn: "https://<PUBLIC_KEY>@app.unseenr.io/<PROJECT_ID>",
_experiments: {
enableLogs: true,
},
});
Also available in:Deutsch