@terascope/job-components / index / Logger / RotatingFileStream
Class: RotatingFileStream
Extends
EventEmitter
Implements
WritableStream
Constructors
new RotatingFileStream()
new RotatingFileStream(
options
):RotatingFileStream
Parameters
Parameter | Type |
---|---|
options | RotatingFileStreamOptions |
Returns
Overrides
EventEmitter.constructor
Source
packages/types/dist/src/logger.d.ts:244
Properties
periodNum
periodNum:
number
Source
packages/types/dist/src/logger.d.ts:246
periodScope
periodScope:
string
Source
packages/types/dist/src/logger.d.ts:247
rotQueue
rotQueue:
any
[]
Source
packages/types/dist/src/logger.d.ts:249
rotating
rotating:
boolean
Source
packages/types/dist/src/logger.d.ts:250
stream
stream:
any
Source
packages/types/dist/src/logger.d.ts:248
writable
writable:
boolean
Implementation of
NodeJS.WritableStream.writable
Source
packages/types/dist/src/logger.d.ts:245
Methods
destroy()
destroy():
void
Returns
void
Source
packages/types/dist/src/logger.d.ts:253
destroySoon()
destroySoon():
void
Returns
void
Source
packages/types/dist/src/logger.d.ts:254
end()
end(
data
?):this
Parameters
Parameter | Type |
---|---|
data ? | any |
Returns
this
Implementation of
NodeJS.WritableStream.end
Source
packages/types/dist/src/logger.d.ts:252
rotate()
rotate():
void
Returns
void
Source
packages/types/dist/src/logger.d.ts:255
write()
write(
record
):boolean
Parameters
Parameter | Type |
---|---|
record | any |
Returns
boolean
Implementation of
NodeJS.WritableStream.write
Source
packages/types/dist/src/logger.d.ts:251