Rails
Add logging to Rails apps
# Gemfilegem 'lognorth'Automatic Logging
Section titled “Automatic Logging”config.middleware.use Lognorth::Middlewareconfig.active_job.callback :around_perform, Lognorth::JobCallbackRequests and jobs logged automatically.
Manual Logging
Section titled “Manual Logging”Lognorth.log("User signed up", user_id: 123)Lognorth.log("Payment failed", user_id: 123, error: "Card declined")