All posts / tag
#logging
-
Dynamic per-user Rails debug logs, scoped to the request
One user could reproduce a production bug. A request-scoped Rails override captured their debug logs, expired on its own, and left other traffic alone.
-
Tuning Rails log levels per class, without a redeploy
One Rails class needed debug logs in production. A temporary per-class override changed at runtime and expired automatically, without enabling debug across the app.