@egain/ai-agent-sdk API Reference - v0.1.1 / LogEntry
Interface: LogEntry
Log entry structure emitted by the logger
Table of contents
Properties
Properties
level
• level: LogLevel
Log level
Defined in
message
• message: string
Log message
Defined in
timestamp
• timestamp: number
Timestamp when the log was created (milliseconds since epoch)
Defined in
context
• Optional context: Record<string, any>
Optional context/metadata
Defined in
error
• Optional error: Error
Optional error object (for ERROR and FATAL levels)
Defined in
agentId
• Optional agentId: string | number
Optional agent identifier
Defined in
sessionId
• Optional sessionId: string | number
Optional session identifier
Defined in
loggerName
• Optional loggerName: string
Optional logger name for identification