TrueFoundry AI Gateway allows you to control which requests are logged.Documentation Index
Fetch the complete documentation index at: https://www.truefoundry.com/llms.txt
Use this file to discover all available pages before exploring further.
Controlling Request Logging
Using HTTP Headers
Include theX-TFY-LOGGING-CONFIG header on a request with a stringified JSON value. Set enabled to true to log the request or false to skip logging:
Using Global Settings
You can also control logging behavior globally using AI Gateway global settings:In the AI Gateway UI, click
Settings in the left sidebar to open global settings.| Mode | Description |
|---|---|
HEADER_CONTROLLED | Logging depends on the enabled value in the X-TFY-LOGGING-CONFIG header. If the header is absent or set to true, logging will occur. If set to false, no logging will happen. |
ALWAYS | All requests are logged regardless of the enabled value. |
NEVER | No requests are logged regardless of the enabled value. |
Viewing Request Logs
You can view all logged requests in the TrueFoundry UI. Go toAI Gateway > Monitor > Requests
