encore-logging

Installation
SKILL.md

Encore.ts structured logging

Use encore.dev/log for application events that need structured fields or trace integration. Preserve an application's established field names and event conventions when they are consistent with this guidance.

Decide what to record

Add logs for information Encore cannot infer from infrastructure operations:

  • Business state transitions
  • Decisions and the inputs that determined them
  • Retries, fallbacks, and degraded operation
  • Failures at the boundary that decides whether to retry, recover, or abort
  • External-system interactions that require domain context
  • Security-relevant or administrative actions

Encore already traces API requests, database queries, service calls, cache operations, and Pub/Sub activity. Do not narrate that execution with logs such as request started, querying database, or request completed.

Use metrics for aggregate counts and levels. Use traces for call flow and timing. Use logs for the context needed to investigate an individual event.

Installs
30
GitHub Stars
26
First Seen
Sep 4, 2026
encore-logging — encoredev/skills