LoggingiOS Setup
Sending Logs
Send structured logs from your iOS app.
Once the SDK is configured, you can start sending logs.
Basic usage
AppPanel.shared.log(.info, "request completed", attributes: ["status": 200])
AppPanel.shared.log(.error, "failed to load", attributes: ["code": "TIMEOUT"])Adding attributes
Attributes are key-value pairs attached to each log entry. Use them to add context you can search and filter on in the dashboard.
AppPanel.shared.log(.info, "user signed in", attributes: [
"method": "google",
"user_id": "abc123"
])
AppPanel.shared.log(.warn, "slow query", attributes: [
"duration_ms": 1200,
"table": "users"
])