All posts / tag
#logging
-
Dynamic per-user Rails debug logs, scoped to the request
A production bug affected one user, but enabling debug for the whole application would have buried the useful lines. This request-scoped override expired on its own and left everyone else's logs alone.
-
Tuning Rails log levels per class, without a redeploy
A production issue needed debug logs from one Rails class, not the whole fleet. The override had to work at runtime, expire cleanly, and cooperate with existing logger behavior.