Sha256: d7ae62d4d08445fca5842dca70a27e608eec21ae265aab242c5c73d9eff606ec

Contents?: true

Size: 409 Bytes

Versions: 2

Compression:

Stored size: 409 Bytes

Contents

# frozen_string_literal: true

module Dynflow
  module LoggerAdapters
    class Delegator < Abstract
      attr_reader :action_logger, :dynflow_logger

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dynflow-1.9.0 lib/dynflow/logger_adapters/delegator.rb
dynflow-1.8.3 lib/dynflow/logger_adapters/delegator.rb