DashboardsentryStructured logging convention: logger.i…

Structured logging convention: logger.info("namespace.action.complete", extra={...})

Category: preference
Confidence: 1.00
ID: 019fb3b9-f53e-7503-b106-3a0d309fe313
Project ID: 702228c8-56bc-4694-8d5a-174ac2f29105
Cross-project: No
Recalled in other projects: 0
Source session: 0rWXqG93IDSIFMxki
Created: 2026-07-30 15:52:16
Updated: 2026-07-30 15:52:16

Content

Directive (Burak Yigit Kaya, 2026-07-30): use the structured-logging pattern logger.info("user.action.complete", extra={"user_id": user.id, "action": "login", "ip_address": request.META.get("REMOTE_ADDR")}). Format: <entity>.<domain>.<verb> (e.g. user.login.complete, ingest.event.processed). Pass context as extra={...} so it can be indexed/queryable. Don't interpolate values into the message string — extra fields are what dashboards and search query.

Move to: