You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logging provides the nested diagnostic context that does exactly this. You can also used the mapped diagnostic context
Yes, I'm familiar with these, but why force one to cook up something custom
just to get what Rails provides out of the box by assigning Procs or Symbols to config.log_tags?
Of course it's trivial for one to wrap Logging::Logger with ActiveSupport::TaggedLogging, but
this is logging-rails. It should integrate logging with Rails' features, not the other way around 😸
By default
Rails.logger
is wrapped. When migrating to logging-rails I usually end up doing this. Any reason not to do this in the initializer?The text was updated successfully, but these errors were encountered: