Class: SmartProxyDynflowCore::Log::ProxyAdapter

Inherits:
Dynflow::LoggerAdapters::Simple
  • Object
show all
Defined in:
lib/smart_proxy_dynflow_core/log.rb

Instance Method Summary collapse

Constructor Details

#initialize(logger, level = Logger::DEBUG, _formatters = []) ⇒ ProxyAdapter

Returns a new instance of ProxyAdapter.



77
78
79
80
81
82
83
# File 'lib/smart_proxy_dynflow_core/log.rb', line 77

def initialize(logger, level = Logger::DEBUG, _formatters = [])
  @logger           = logger
  @logger.level     = level
  @logger.formatter = ProxyStructuredFormater.new(@logger)
  @action_logger    = apply_formatters(ProgNameWrapper.new(@logger, ' action'), [ProxyStructuredFormater])
  @dynflow_logger   = apply_formatters(ProgNameWrapper.new(@logger, 'dynflow'), [ProxyStructuredFormater])
end