Class: Dynflow::LoggerAdapters::Delegator

Inherits:
Abstract
  • Object
show all
Defined in:
lib/dynflow/logger_adapters/delegator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Abstract

#level, #level=

Constructor Details

#initialize(action_logger, dynflow_logger, formatters = [Formatters::Exception]) ⇒ Delegator

Returns a new instance of Delegator.



7
8
9
10
# File 'lib/dynflow/logger_adapters/delegator.rb', line 7

def initialize(action_logger, dynflow_logger, formatters = [Formatters::Exception])
  @action_logger  = apply_formatters action_logger, formatters
  @dynflow_logger = apply_formatters dynflow_logger, formatters
end

Instance Attribute Details

#action_loggerObject (readonly)

Returns the value of attribute action_logger.



5
6
7
# File 'lib/dynflow/logger_adapters/delegator.rb', line 5

def action_logger
  @action_logger
end

#dynflow_loggerObject (readonly)

Returns the value of attribute dynflow_logger.



5
6
7
# File 'lib/dynflow/logger_adapters/delegator.rb', line 5

def dynflow_logger
  @dynflow_logger
end