Skip to main content
Client logs help you understand user behavior and debug issues in production.

Logging with Beacon

Log Levels

Structured Logging

Include structured data for better searching:

User Context

Logs automatically include user context if set:

Viewing Logs

View logs in Dashboard > Settings > Beacon > Logs:
  • Filter by level, service, time range
  • Search log messages and data
  • Group by user or session
  • Export for analysis

Log Retention

Best Practices

Focus on events that help debugging: user actions, API calls, state changes.
Add relevant data like IDs, counts, and durations.
Reserve error for actual failures, use warn for issues that don’t block users.
Never log passwords, tokens, or PII.