Interface LogEventSerializerConfig

Hierarchy

  • LogEventSerializerConfig

Properties

format?: string

Custom format for the serialized output. When this is set, all include*** flags will be ignored.

Default

'{timestamp} [{level}] [{tag}] {message}{params}'

includeLevel: boolean

Includes the level in the serialized output

Default

true

includeParams: boolean

Includes all params in the serialized output

Default

true

includeTag: boolean

Includes the tag in the serialized output

Default

true

includeTimestamp: boolean

Includes the timestamp in the serialized output

Default

true

levelNameFixedLength: number

The minimum required length for level names. This can help with alignment issues in large volume log output.

Default

0

levelNameMap: Record<number, string>

Object where keys are integer levels and values are a string which is the name of the level.

Default

inverse of the LogLevel object literal

maxParamStringLength: number

The maximum allowed length for a serialized parameter before it is truncated.

Default

250

paramsSeperator: string

Seperator string that will be used as a prefix for each log parameter.

Default

' :: '

propertyFormatters: Record<string, LogEventSerializerPropertyFormatter>

Transformers for each individual log event property.

Generated using TypeDoc