agents / Exports / LoggingPluginOptions
Interface: LoggingPluginOptions
Configuration options for logging plugin
Hierarchy
↳
LoggingPluginOptions
Table of contents
Properties
- enabled
- category
- priority
- moduleEvents
- subscribeToAllModuleEvents
- strategy
- level
- filePath
- remoteEndpoint
- remoteHeaders
- maxLogs
- includeStackTrace
- formatter
- logger
- batchSize
- flushInterval
Properties
enabled
• Optional enabled: boolean
Whether the plugin is enabled
Inherited from
Defined in
packages/agents/src/abstracts/base-plugin.ts:125
category
• Optional category: PluginCategory
Plugin category for classification
Inherited from
Defined in
packages/agents/src/abstracts/base-plugin.ts:127
priority
• Optional priority: number
Plugin priority for execution order
Inherited from
Defined in
packages/agents/src/abstracts/base-plugin.ts:129
moduleEvents
• Optional moduleEvents: EventType[]
Events to subscribe to from modules
Inherited from
BasePluginOptions.moduleEvents
Defined in
packages/agents/src/abstracts/base-plugin.ts:131
subscribeToAllModuleEvents
• Optional subscribeToAllModuleEvents: boolean
Whether to subscribe to all module events
Inherited from
BasePluginOptions.subscribeToAllModuleEvents
Defined in
packages/agents/src/abstracts/base-plugin.ts:133
strategy
• strategy: LoggingStrategy
Logging strategy to use
Defined in
packages/agents/src/plugins/logging/types.ts:37
level
• Optional level: LogLevel
Minimum log level to capture
Defined in
packages/agents/src/plugins/logging/types.ts:39
filePath
• Optional filePath: string
File path for file strategy
Defined in
packages/agents/src/plugins/logging/types.ts:41
remoteEndpoint
• Optional remoteEndpoint: string
Remote endpoint for remote strategy
Defined in
packages/agents/src/plugins/logging/types.ts:43
remoteHeaders
• Optional remoteHeaders: Record<string, string>
Headers for remote logging
Defined in
packages/agents/src/plugins/logging/types.ts:45
maxLogs
• Optional maxLogs: number
Maximum number of logs to keep in memory
Defined in
packages/agents/src/plugins/logging/types.ts:47
includeStackTrace
• Optional includeStackTrace: boolean
Whether to include stack traces in error logs
Defined in
packages/agents/src/plugins/logging/types.ts:49
formatter
• Optional formatter: LogFormatter
Custom log formatter
Defined in
packages/agents/src/plugins/logging/types.ts:51
logger
• Optional logger: SimpleLogger
Logger instance for internal plugin logging
Defined in
packages/agents/src/plugins/logging/types.ts:53
batchSize
• Optional batchSize: number
Batch size for remote logging
Defined in
packages/agents/src/plugins/logging/types.ts:55
flushInterval
• Optional flushInterval: number
Flush interval for batched logging in milliseconds