Class: CoreLibrary::ApiLoggingConfiguration
- Inherits:
-
Object
- Object
- CoreLibrary::ApiLoggingConfiguration
- Defined in:
- lib/apimatic-core/logger/configurations/api_logging_configuration.rb
Overview
Represents options for configuring logging behavior.
Instance Attribute Summary collapse
-
#log_level ⇒ Object
readonly
Returns the value of attribute log_level.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#mask_sensitive_headers ⇒ Object
readonly
Returns the value of attribute mask_sensitive_headers.
-
#request_logging_config ⇒ Object
readonly
Returns the value of attribute request_logging_config.
-
#response_logging_config ⇒ Object
readonly
Returns the value of attribute response_logging_config.
Instance Method Summary collapse
-
#initialize(logger, log_level, request_logging_config, response_logging_config, mask_sensitive_headers) ⇒ ApiLoggingConfiguration
constructor
Initializes a new instance of ApiLoggingConfiguration.
Constructor Details
#initialize(logger, log_level, request_logging_config, response_logging_config, mask_sensitive_headers) ⇒ ApiLoggingConfiguration
Initializes a new instance of ApiLoggingConfiguration.
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/apimatic-core/logger/configurations/api_logging_configuration.rb', line 13 def initialize( logger, log_level, request_logging_config, response_logging_config, mask_sensitive_headers ) @logger = logger || ConsoleLogger.new @log_level = log_level || ::Logger::INFO @request_logging_config = request_logging_config @response_logging_config = response_logging_config @mask_sensitive_headers = mask_sensitive_headers end |
Instance Attribute Details
#log_level ⇒ Object (readonly)
Returns the value of attribute log_level.
4 5 6 |
# File 'lib/apimatic-core/logger/configurations/api_logging_configuration.rb', line 4 def log_level @log_level end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
4 5 6 |
# File 'lib/apimatic-core/logger/configurations/api_logging_configuration.rb', line 4 def logger @logger end |
#mask_sensitive_headers ⇒ Object (readonly)
Returns the value of attribute mask_sensitive_headers.
4 5 6 |
# File 'lib/apimatic-core/logger/configurations/api_logging_configuration.rb', line 4 def mask_sensitive_headers @mask_sensitive_headers end |
#request_logging_config ⇒ Object (readonly)
Returns the value of attribute request_logging_config.
4 5 6 |
# File 'lib/apimatic-core/logger/configurations/api_logging_configuration.rb', line 4 def request_logging_config @request_logging_config end |
#response_logging_config ⇒ Object (readonly)
Returns the value of attribute response_logging_config.
4 5 6 |
# File 'lib/apimatic-core/logger/configurations/api_logging_configuration.rb', line 4 def response_logging_config @response_logging_config end |