| Crates.io | fogwatch |
| lib.rs | fogwatch |
| version | 0.1.0 |
| created_at | 2025-01-30 12:37:06.754961+00 |
| updated_at | 2025-01-30 12:37:06.754961+00 |
| description | A real-time log viewer for Cloudflare Workers with filtering and multiple output formats |
| homepage | |
| repository | https://github.com/yourusername/fogwatch |
| max_upload_size | |
| id | 1536322 |
| size | 168,058 |
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
Worker Selection:
↑/k: Move selection up↓/j: Move selection downEnter: Select workerLog Navigation:
↑/k: Scroll logs up↓/j: Scroll logs downEnter: Toggle details viewh/l: Switch focus between logs and detailsq: QuitStatus 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:
Enhanced Filtering:
UI Improvements:
Analytics:
Quality of Life:
See CONTRIBUTING.md for development setup and guidelines.
MIT License - See LICENSE for details