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
I'm not sure why this was designed like this but when initializing the Webpacker.logger, if Rails logger is using TaggedLogging, it sets Webpacker.logger to use the Rails logger, otherwise it uses Tagged logging.
The issue is if you have a custom formatter, calling ActiveSupport::TaggedLogging.new will set @formatter to use SimpleFormatter
Ran into this myself. It doesn't play well at all with other logging libraries like ougai since the tagged logger stringifies the message (which is a hash).
I'm not sure why this was designed like this but when initializing the Webpacker.logger, if Rails logger is using
TaggedLogging
, it setsWebpacker.logger
to use the Rails logger, otherwise it uses Tagged logging.The issue is if you have a custom formatter, calling
ActiveSupport::TaggedLogging.new
will set@formatter
to useSimpleFormatter
I've opened a PR #1311
The text was updated successfully, but these errors were encountered: