Module: ActiveSupport::TaggedLogging

Extended by:
T::Sig
Defined in:
lib/log_struct/monkey_patches/active_support/tagged_logging/formatter.rb

Defined Under Namespace

Modules: FormatterExtension

Class Method Summary collapse

Class Method Details

.current_tagsArray<String, Symbol>

Add class-level current_tags method for compatibility with Rails code that expects to call ActiveSupport::TaggedLogging.current_tags Use thread-local storage directly like Rails does internally

Returns:

  • (Array<String, Symbol>)


17
18
19
# File 'lib/log_struct/monkey_patches/active_support/tagged_logging/formatter.rb', line 17

def self.current_tags
  Thread.current[:activesupport_tagged_logging_tags] || []
end