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
- 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:36
level
• Optional
level: LogLevel
Minimum log level to capture
Defined in
packages/agents/src/plugins/logging/types.ts:38
filePath
• Optional
filePath: string
File path for file strategy
Defined in
packages/agents/src/plugins/logging/types.ts:40
remoteEndpoint
• Optional
remoteEndpoint: string
Remote endpoint for remote strategy
Defined in
packages/agents/src/plugins/logging/types.ts:42
remoteHeaders
• Optional
remoteHeaders: Record
<string
, string
>
Headers for remote logging
Defined in
packages/agents/src/plugins/logging/types.ts:44
maxLogs
• Optional
maxLogs: number
Maximum number of logs to keep in memory
Defined in
packages/agents/src/plugins/logging/types.ts:46
includeStackTrace
• Optional
includeStackTrace: boolean
Whether to include stack traces in error logs
Defined in
packages/agents/src/plugins/logging/types.ts:48
formatter
• Optional
formatter: LogFormatter
Custom log formatter
Defined in
packages/agents/src/plugins/logging/types.ts:50
batchSize
• Optional
batchSize: number
Batch size for remote logging
Defined in
packages/agents/src/plugins/logging/types.ts:52
flushInterval
• Optional
flushInterval: number
Flush interval for batched logging in milliseconds