Response Logging Interceptor#
Overview#
The ResponseLoggingInterceptor
captures and logs API responses for analysis and debugging. Use this interceptor to examine model outputs and identify response patterns.
Configuration#
CLI Configuration#
--overrides 'target.api_endpoint.adapter_config.use_response_logging=True,target.api_endpoint.adapter_config.max_saved_responses=1000'
YAML Configuration#
target:
api_endpoint:
adapter_config:
interceptors:
- name: "endpoint"
enabled: true
config: {}
- name: "response_logging"
enabled: true
config:
max_responses: 1000
Configuration Options#
Parameter |
Description |
Default |
Type |
---|---|---|---|
|
Whether to log the response body contents. |
|
|
|
Whether to log the response HTTP headers. |
|
|
|
Maximum number of responses to log (None for unlimited). |
|
|