Skip to content

@egain/ai-agent-sdk API Reference - v0.3.2 / LoggerConfig

Interface: LoggerConfig ​

Logger configuration options

Table of contents ​

Properties ​

Properties ​

level ​

• Optional level: LogLevel

Minimum log level threshold

Default

ts
LogLevel.INFO

Defined in ​

core/logging/Logger.ts:13


enableConsole ​

• Optional enableConsole: boolean

Enable console output

Default

ts
true

Defined in ​

core/logging/Logger.ts:19


name ​

• Optional name: string

Logger name for identification

Default

ts
undefined

Defined in ​

core/logging/Logger.ts:25


contextProvider ​

• Optional contextProvider: () => Record<string, any>

Context provider function that returns dynamic context at log time This allows including dynamic values like sessionId in all log entries

Default

ts
undefined

Type declaration ​

▸ (): Record<string, any>

Returns ​

Record<string, any>

Defined in ​

core/logging/Logger.ts:32

Released under the MIT License.