@terascope/utils / index / Logger / RingBuffer
Class: RingBuffer
Extends
EventEmitter
Implements
WritableStream
Constructors
new RingBuffer()
new RingBuffer(
options
):RingBuffer
Parameters
Parameter | Type |
---|---|
options | RingBufferOptions |
Returns
Overrides
EventEmitter.constructor
Source
packages/types/dist/src/logger.d.ts:230
Properties
records
records:
any
[]
Source
packages/types/dist/src/logger.d.ts:232
writable
writable:
boolean
Implementation of
NodeJS.WritableStream.writable
Source
packages/types/dist/src/logger.d.ts:231
Methods
destroy()
destroy():
void
Returns
void
Source
packages/types/dist/src/logger.d.ts:235
destroySoon()
destroySoon():
void
Returns
void
Source
packages/types/dist/src/logger.d.ts:236
end()
end(
data
?):this
Parameters
Parameter | Type |
---|---|
data ? | any |
Returns
this
Implementation of
NodeJS.WritableStream.end
Source
packages/types/dist/src/logger.d.ts:234
write()
write(
record
):boolean
Parameters
Parameter | Type |
---|---|
record | any |
Returns
boolean
Implementation of
NodeJS.WritableStream.write
Source
packages/types/dist/src/logger.d.ts:233