Merge pull request #5604 from tjoskar/bunyan/support-period-for-rotating-file

Update stream interface for Bunyan to support `period` and `count` for `rotating-file` type.
This commit is contained in:
Masahiro Wakame
2015-09-03 01:57:36 +09:00
2 changed files with 5 additions and 1 deletions
+3 -1
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
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;