mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Update stream interface for Bunyan
To support period and count for `rotating-file` type.
This commit is contained in:
@@ -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
2
bunyan/bunyan.d.ts
vendored
@@ -65,6 +65,8 @@ declare module "bunyan" {
|
||||
path?: string;
|
||||
stream?: NodeJS.WritableStream | Stream;
|
||||
closeOnExit?: boolean;
|
||||
period?: string;
|
||||
count?: number;
|
||||
}
|
||||
|
||||
export var stdSerializers:Serializers;
|
||||
|
||||
Reference in New Issue
Block a user