🔧 config: add log output file configuration and cleanup example files

This commit is contained in:
2026-04-04 13:54:59 +02:00
parent c41611281b
commit 25d8940db4
7 changed files with 98 additions and 74 deletions

View File

@@ -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:**