log2web
v0.0.13
Published
Stream any command's output to a clean, modern web interface in real-time. Perfect for monitoring builds, debugging services, or sharing live logs.
Readme
log2web
Stream any command's output to a clean, modern web interface in real-time. Perfect for monitoring builds, debugging services, or sharing live logs.
Key Features
- Live Log Streaming: Pipe any command-line process (
tail,npm run,docker logs, etc.) directly to your browser. - Rich & Readable Output:
- Full ANSI color support for colored log output.
- Pretty-printed and collapsible JSON viewer with array size hints.
- Clear visual distinction for errors (red) and warnings (amber).
- Smart log level highlighting: Accurately highlights log levels (e.g.,
ERROR,WARN,INFO,DEBUG).
- Interactive Console UI:
- Chrome-style filtering: Include or exclude logs with keywords (e.g.,
api -verbose). - Clear button to instantly wipe the log view.
- A simple, no-nonsense interface that stays out of your way.
- Chrome-style filtering: Include or exclude logs with keywords (e.g.,
Installation
npm install -g log2webUsage
Simply prefix your command with log2web:
log2web [options] <your-command> [args...]Examples
1. Basic Command: Stream the output of a continuous ping command.
log2web ping google.com2. Specify a Port: Monitor a log file and serve it on port 8080.
log2web --port 8080 tail -f /var/log/syslogAfter running, open http://localhost:<port> in your browser to see the live stream. The default port is 1234.
Options
--port <number>: Specify the port for the web server.
License
MIT
