log-pipe

Pipe stdin to a logfile with optional log rotation parameters

log-pipe

Pipe stdin to a logfile with optional log rotation parameters

Example

node index.js 2>&1 | log-pipe app.log --count 3 --lines 15

options

The maximum number of rotated logs (including primary log file). Additional files after count will be deleted.

The maximum number of log lines before a rotation occurrs.

install

With npm do:

npm install log-pipe