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 = ;var wp = 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 ;