mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
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:
@@ -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,
|
||||
|
||||
Vendored
+2
@@ -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