Easier access to logs at startup

Updated documentation
This commit is contained in:
Fahad
2025-06-15 07:09:44 +04:00
parent 99fab3e83d
commit 318b5c7ae7
4 changed files with 65 additions and 9 deletions

View File

@@ -1,14 +1,30 @@
# Logging
## Quick Start - Follow Logs
The easiest way to monitor logs is to use the `-f` flag when starting the server:
```bash
# Start server and automatically follow MCP logs
./run-server.sh -f
```
This will start the server and immediately begin tailing the MCP server logs.
## Viewing Logs in Docker
To monitor MCP server activity in real-time:
```bash
# View all container logs
docker-compose logs -f
# Follow MCP server logs (recommended)
docker exec zen-mcp-server tail -f -n 500 /tmp/mcp_server.log
# Or use the -f flag when starting the server
./run-server.sh -f
```
**Note**: Due to MCP protocol limitations, container logs don't show tool execution details. Always use the commands above for debugging.
## Log Files
Logs are stored in the container's `/tmp/` directory and rotate daily at midnight, keeping 7 days of history: