A real-time log viewer for Cloudflare Workers with filtering and multiple output formats.
cargo install fogwatch
export CLOUDFLARE_API_TOKEN="your-api-token"
export CLOUDFLARE_ACCOUNT_ID="your-account-id"
fogwatch
undefinedWorker Selection:
↑/k: Move selection up↓/j: Move selection downEnter: Select workerundefinedLog Navigation:
↑/k: Scroll logs up↓/j: Scroll logs downEnter: Toggle details viewh/l: Switch focus between logs and detailsq: QuitundefinedStatus Code Filtering:
2: Show only 2xx responses4: Show only 4xx responses5: Show only 5xx responses0: Show other status codesa: Show all logsUSAGE:
fogwatch [OPTIONS]
OPTIONS:
-t, --token <TOKEN> Cloudflare API token
-a, --account-id <ACCOUNT_ID> Cloudflare Account ID
-w, --worker <WORKER> Worker name to monitor
-m, --method <METHOD>... Filter by HTTP method
-s, --status <STATUS>... Filter by status (ok, error, canceled)
-q, --search <SEARCH> Search string in logs
-r, --sampling-rate <RATE> Sampling rate (0.0 to 1.0)
-f, --format <FORMAT> Output format (pretty, json, compact)
-d, --debug Enable debug output
--init-config Generate sample config file
fogwatch can be configured via:
./fogwatch.toml~/.config/fogwatch/config.tomlGenerate a sample config:
fogwatch --init-config
fogwatch is built with a modular architecture:
Contributions are welcome! Here are some areas where you can help:
undefinedEnhanced Filtering:
undefinedUI Improvements:
undefinedAnalytics:
undefinedQuality of Life:
See CONTRIBUTING.md for development setup and guidelines.
MIT License - See LICENSE for details
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.