Lightweight local log diagnostics for Node.js, Express, and NestJS. Real-time web UI, error tracing, breadcrumbs, and zero dependencies.
Zero dependencies. Zero config required. Drop it in and get instant visibility into what your app is doing.
import 'dev-log-monitor/auto' — intercepts all console methods, starts the UI server, and enables masking. No setup.Three steps. No config files. No build plugins. Just install, import, and open the browser.
Add the package to your project. Zero dependencies means nothing else to install.
Add one line at the top of your entry file. That's it — everything is automatic.
Start your app and open the log viewer in your browser. Logs stream in real time.
Every log entry is enriched with source info, timing, context, and more — all searchable and filterable.
No config files needed. Everything is configurable via environment variables — perfect for Docker, CI, and .env files.
| Variable | Default | Description |
|---|---|---|
DEV_LOG_PORT |
3333 |
Port for the web UI |
DEV_LOG_DIR |
.dev-log |
Log storage directory |
DEV_LOG_RETENTION |
3 |
Days to keep log files |
DEV_LOG_CONSOLE |
true |
Also print logs to console |
DEV_LOG_INTERCEPT |
true |
Intercept console.log/warn/error |
DEV_LOG_MASKING |
true |
Auto-mask sensitive data |
DEV_LOG_STORAGE_LEVEL |
debug |
Minimum level to persist (debug | info | warn | error) |
DEV_LOG_MAX_FILE_SIZE |
52428800 |
Max per-file size in bytes (50MB) |
DEV_LOG_MAX_TOTAL_SIZE |
104857600 |
Max total storage in bytes (100MB) |
DEV_LOG_DISABLE |
false |
Disable dev-log entirely |
NODE_ENV |
— | Set to production to auto-disable |
Install in seconds. Remove in seconds. Zero lock-in.