Skip to main content

LoggerConfig

@abimongo/logger


Interface: LoggerConfig

Defined in: types/abimongoConfig.ts:26

Properties

circuitBreaker?

optional circuitBreaker: object

Defined in: types/abimongoConfig.ts:37

enabled?

optional enabled: boolean

retryAttempts?

optional retryAttempts: number

retryDelay?

optional retryDelay: number


colorize?

optional colorize: boolean

Defined in: types/abimongoConfig.ts:29


compressLogFiles?

optional compressLogFiles: object

Defined in: types/abimongoConfig.ts:43

enabled?

optional enabled: boolean


enableMetrics?

optional enableMetrics: object

Defined in: types/abimongoConfig.ts:39

enabled?

optional enabled: boolean

logInterval?

optional logInterval: number


enrichMetadata()?

optional enrichMetadata: (meta) => Record<string, any>

Defined in: types/abimongoConfig.ts:35

Parameters

meta

Record<string, any>

Returns

Record<string, any>


excludedSources?

optional excludedSources: string[]

Defined in: types/abimongoConfig.ts:32


formatOptions?

optional formatOptions: LoggerFormatOptions

Defined in: types/abimongoConfig.ts:33


garbageCollector?

optional garbageCollector: object

Defined in: types/abimongoConfig.ts:38

enabled?

optional enabled: boolean

logResults?

optional logResults: boolean

retentionPeriod?

optional retentionPeriod: number


hooks?

optional hooks: LoggerHooks

Defined in: types/abimongoConfig.ts:34


json?

optional json: boolean

Defined in: types/abimongoConfig.ts:30


level?

optional level: LogLevel

Defined in: types/abimongoConfig.ts:28


logger?

optional logger: ILogger

Defined in: types/abimongoConfig.ts:27


shouldLog()?

optional shouldLog: (level, meta?) => boolean

Defined in: types/abimongoConfig.ts:36

Parameters

level

LogLevel

meta?

Record<string, any>

Returns

boolean


transports?

optional transports: (Transporter | RemoteTransporter)[]

Defined in: types/abimongoConfig.ts:31