lib/contrast/components/security_logger.rb in contrast-agent-6.8.0 vs lib/contrast/components/security_logger.rb in contrast-agent-6.9.0

- old
+ new

@@ -1,18 +1,31 @@ # 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