新增请求/响应日志中间件,支持详细的请求和响应信息记录
All checks were successful
Build and Push OCI GenAI Gateway Docker Image / docker-build-push (push) Successful in 34s

This commit is contained in:
2025-12-09 17:46:07 +08:00
parent 6a5e6bcf7c
commit ba7ec48c4f
4 changed files with 172 additions and 2 deletions

View File

@@ -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)