Class: PierLogging::RequestLoggerConfiguration
- Inherits:
-
Object
- Object
- PierLogging::RequestLoggerConfiguration
- Defined in:
- lib/pier_logging.rb
Instance Attribute Summary collapse
-
#correlation_id_getter ⇒ Object
Returns the value of attribute correlation_id_getter.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#hide_request_headers ⇒ Object
Returns the value of attribute hide_request_headers.
-
#hide_response_body_for_paths ⇒ Object
Returns the value of attribute hide_response_body_for_paths.
-
#log_response ⇒ Object
Returns the value of attribute log_response.
-
#user_info_getter ⇒ Object
Returns the value of attribute user_info_getter.
Instance Method Summary collapse
-
#initialize ⇒ RequestLoggerConfiguration
constructor
A new instance of RequestLoggerConfiguration.
Constructor Details
#initialize ⇒ RequestLoggerConfiguration
Returns a new instance of RequestLoggerConfiguration.
60 61 62 63 64 65 66 67 |
# File 'lib/pier_logging.rb', line 60 def initialize @user_info_getter = ->(_ = nil) { nil } @enabled = false @hide_response_body_for_paths = nil @log_response = true @hide_request_headers = nil @correlation_id_getter = ->(_ = nil, _ = nil) { nil } end |
Instance Attribute Details
#correlation_id_getter ⇒ Object
Returns the value of attribute correlation_id_getter.
57 58 59 |
# File 'lib/pier_logging.rb', line 57 def correlation_id_getter @correlation_id_getter end |
#enabled ⇒ Object
Returns the value of attribute enabled.
57 58 59 |
# File 'lib/pier_logging.rb', line 57 def enabled @enabled end |
#hide_request_headers ⇒ Object
Returns the value of attribute hide_request_headers.
57 58 59 |
# File 'lib/pier_logging.rb', line 57 def hide_request_headers @hide_request_headers end |
#hide_response_body_for_paths ⇒ Object
Returns the value of attribute hide_response_body_for_paths.
57 58 59 |
# File 'lib/pier_logging.rb', line 57 def hide_response_body_for_paths @hide_response_body_for_paths end |
#log_response ⇒ Object
Returns the value of attribute log_response.
57 58 59 |
# File 'lib/pier_logging.rb', line 57 def log_response @log_response end |
#user_info_getter ⇒ Object
Returns the value of attribute user_info_getter.
57 58 59 |
# File 'lib/pier_logging.rb', line 57 def user_info_getter @user_info_getter end |