@egain/ai-agent-sdk API Reference - v0.1.1 / LoggerConfig
Interface: LoggerConfig
Logger configuration options
Table of contents
Properties
Properties
level
• Optional level: LogLevel
Minimum log level threshold
Default
ts
LogLevel.INFODefined in
enableConsole
• Optional enableConsole: boolean
Enable console output
Default
ts
trueDefined in
name
• Optional name: string
Logger name for identification
Default
ts
undefinedDefined in
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
undefinedType declaration
▸ (): Record<string, any>
Returns
Record<string, any>