Class: LogStruct::SemanticLogger::FormatterProxy

Inherits:
Logger::Formatter
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/log_struct/semantic_logger/logger.rb

Overview

Proxy object to provide ActiveJob-compatible formatter interface Also implements the standard Logger formatter interface (call method) for compatibility with Ruby's Logger (especially logger gem 1.7.0+)

Instance Method Summary collapse

Instance Method Details

#current_tagsArray<String, Symbol>

Returns:

  • (Array<String, Symbol>)


157
158
159
# File 'lib/log_struct/semantic_logger/logger.rb', line 157

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