Engineering: Observability
Structured Logging & Audit
Complete visibility across our distributed system. From simple development console logs to production-grade audit trails via our pluggable adapter system.
Hexagonal Logging
We use the Adapter Pattern (Ports & Adapters) to decouple our logging interface from the storage backend. This allows us to scale costs as we grow.
Structured (JSON)Logs are always objects, searchable by properties like tenant_id.
Context IsolationUsing AsyncLocalStorage to track user context across async calls.
Audit ReadyAutomatic capturing of CUD (Create, Update, Delete) operations.
Log flow Architecture
Application Code
LoggerService (Port)
Console
Supabase
Cloud (Loki)
Adapter is selected at runtime via LOG_TRANSPORT env var.