🔧 config: add log output file configuration and cleanup example files
This commit is contained in:
10
AGENTS.md
10
AGENTS.md
@@ -156,6 +156,7 @@ The server supports flexible configuration through environment variables with th
|
||||
| Port | `DLC_SERVER_PORT` | `8080` | Server listening port |
|
||||
| Shutdown Timeout | `DLC_SHUTDOWN_TIMEOUT` | `30s` | Graceful shutdown timeout |
|
||||
| JSON Logging | `DLC_LOGGING_JSON` | `false` | Enable JSON format logging |
|
||||
| Log Output | `DLC_LOGGING_OUTPUT` | `""` | Log output file path (empty for stderr) |
|
||||
|
||||
**Usage Examples:**
|
||||
|
||||
@@ -176,6 +177,15 @@ export DLC_SHUTDOWN_TIMEOUT=45s
|
||||
# Enable JSON logging
|
||||
export DLC_LOGGING_JSON=true
|
||||
./scripts/start-server.sh start
|
||||
|
||||
# Log to file
|
||||
export DLC_LOGGING_OUTPUT="server.log"
|
||||
./scripts/start-server.sh start
|
||||
|
||||
# Combined: JSON logging to file
|
||||
export DLC_LOGGING_JSON=true
|
||||
export DLC_LOGGING_OUTPUT="server.json.log"
|
||||
./scripts/start-server.sh start
|
||||
```
|
||||
|
||||
**Configuration File Support:**
|
||||
|
||||
Reference in New Issue
Block a user