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

Returns:

  • (Array<String, Symbol>)


20
21
22
# File 'lib/log_struct/monkey_patches/active_support/tagged_logging/formatter.rb', line 20

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