Sha256: 0b55427a5428a91da0cca1e8f754e61190449db1827f1a4d4cb256955336af56

Contents?: true

Size: 981 Bytes

Versions: 3

Compression:

Stored size: 981 Bytes

Contents

# Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true

require 'contrast/components/base'

module Contrast
  module Components
    module SecurityLogger
      # Here we will read and store the setting for the CEF Logging functionality
      class Interface
        include Contrast::Components::ComponentBase

        CANON_NAME = 'agent.security_logger'
        CONFIG_VALUES = %w[path level].cs__freeze

        # @return [String, nil]
        attr_accessor :path
        # @return [String, nil]
        attr_accessor :level
        # @return [String]
        attr_reader :canon_name
        # @return [Array]
        attr_reader :config_values

        def initialize hsh = {}
          @config_values = CONFIG_VALUES
          @canon_name = CANON_NAME
          return unless hsh

          @path = hsh[:path]
          @level = hsh[:level]
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
contrast-agent-6.11.0 lib/contrast/components/security_logger.rb
contrast-agent-6.10.0 lib/contrast/components/security_logger.rb
contrast-agent-6.9.0 lib/contrast/components/security_logger.rb