rollerpunk

0.0.1 • Public • Published

Rollerpunk

Rollerpunk is a rotating file adapter for Whistlepunk.

Usage

Use it just like you would any whistlepunk adapter. After you've installed it, rollerpunk will be required automatically by whistlepunk.

var postal = require( "postal" );
var wp = require( "whistlepunk" )( postal, {
    adapters: {
        rollerpunk: {
            level: 4,
            logFolder: "/var/log/myapp", // Folder where logs will live
            fileName: "whistlepunk.log",
            maxSize: 500, // Maximum file size in KB
            maxLogFiles: 0, // Limit the number of archived files in your directory. 0 == unlimited
            maxUnwritten: 1000, // Maximum number of queued log writes when FileWriter is in an invalid state
            maxConsecutiveReboots: 25, // Number of times the log will try to restart itself consecutively before giving up
            rebootInterval: 60 // Number of seconds in between
        }
    }
});

Readme

Keywords

none

Package Sidebar

Install

npm i rollerpunk

Weekly Downloads

1

Version

0.0.1

License

Copyright LeanKit 2014

Last publish

Collaborators

  • brian_edgerton