Class LogEventBuffer

Utility to recycle LogEvent instances so that this module can put a soft cap on how much garbage it creates.

Note that the event instances cached in this buffer are the same ones that get passed on to transport event listeners, and that this module expects the consumers of these instances to NOT modify them.

To disable caching completely, set capacity to zero (emulates v5.x behavior).

Hierarchy

  • LogEventBuffer

Constructors

Accessors

Methods

Constructors

Accessors

Methods

  • Parameters

    • level: number
    • context: string
    • message: string
    • Optional params: any[]
    • Optional timestamp: number

    Returns LogEvent

Generated using TypeDoc