log-pipe

0.0.4 • Public • Published

log-pipe

Pipe stdin to a logfile with optional log rotation parameters

NPM

Example

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

options

count

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

lines

The maximum number of log lines before a rotation occurrs.

install

With npm do:

npm install log-pipe

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    5
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    5
  • 0.0.3
    4
  • 0.0.2
    2
  • 0.0.1
    2

Package Sidebar

Install

npm i log-pipe

Weekly Downloads

8

Version

0.0.4

License

BSD-2-Clause

Last publish

Collaborators

  • dstokes