Update stream interface for Bunyan

To support period and count for `rotating-file` type.
This commit is contained in:
Oskar Karlsson
2015-08-29 14:23:05 +02:00
parent 67605e10f6
commit 44db8b5633
2 changed files with 5 additions and 1 deletions

View File

@@ -40,7 +40,9 @@ var options:bunyan.LoggerOptions = {
type: 'rotating-file',
path: '/tmp/test2.log',
level: bunyan.INFO,
closeOnExit: false
closeOnExit: false,
period: '1d',
count: 3
}, {
type: 'raw',
stream: process.stderr,

2
bunyan/bunyan.d.ts vendored
View File

@@ -65,6 +65,8 @@ declare module "bunyan" {
path?: string;
stream?: NodeJS.WritableStream | Stream;
closeOnExit?: boolean;
period?: string;
count?: number;
}
export var stdSerializers:Serializers;