Interface SerializerOutputConfig

Options that can be used to generate a serialization function

Hierarchy

Properties

onNextLine: ((line: string) => void)

Type declaration

    • (line: string): void
    • Callback to be invoked when a new serialized event is received

      Parameters

      • line: string

        the serialized version of the event

      Returns void

seperator?: string

A seperator string to append to serialized events

Default

'\n'

Direct serializer function reference. Takes highest precedence if provided.

A serializer-like interface. Will take precedence over serializerConfig if provided.

serializerConfig?: Partial<LogEventSerializerConfig>

Configuration for a new LogEventSerializer instance. Lowest precedence, only used if no other options are provided.

Generated using TypeDoc