mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +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:
commit
70db5492cb
2 files changed
+5
-1
No files matched your search
@@ -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