新增请求/响应日志中间件,支持详细的请求和响应信息记录
All checks were successful
Build and Push OCI GenAI Gateway Docker Image / docker-build-push (push) Successful in 34s
All checks were successful
Build and Push OCI GenAI Gateway Docker Image / docker-build-push (push) Successful in 34s
This commit is contained in:
@@ -53,10 +53,14 @@ STREAM_CHUNK_SIZE=1024
|
||||
# Logging
|
||||
# Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
|
||||
LOG_LEVEL=INFO
|
||||
# Log incoming requests (may contain sensitive data)
|
||||
|
||||
# Enable detailed request/response logging for debugging
|
||||
# LOG_REQUESTS: Print incoming request details (method, URL, headers, body)
|
||||
# LOG_RESPONSES: Print outgoing response details (status, headers, body)
|
||||
# Note: Sensitive data (like API keys) are automatically filtered from logs
|
||||
LOG_REQUESTS=false
|
||||
# Log responses (may contain sensitive data)
|
||||
LOG_RESPONSES=false
|
||||
|
||||
# Log file path (optional, if not set logs only to console)
|
||||
LOG_FILE=./logs/app.log
|
||||
# Max log file size in MB (default: 10)
|
||||
|
||||
Reference in New Issue
Block a user