BeagleLogPlugin is an abstract class that serves as the foundation for creating custom log plugins. Plugins determine how different types of logs are displayed and handled in the Beagle interface.
Type Parameters
extends BeagleLog
The specific log type this plugin handles. Must extend
BeagleLog.Properties
string
required
The unique identifier for the plugin. This name is used to identify the plugin type throughout the system.
Abstract Methods
These methods must be implemented by all plugin subclasses.canHandle()
BeagleLog
The log to check
log is T
TypeScript type predicate that narrows the log type to
T if the plugin can handle itprovideDetailContent()
T
The log to generate content for
DetailContent
The detail content structure, either
ListContent or TabBarContentOptional Methods
These methods have default implementations but can be overridden.provideCardFooter()
T
The log to generate footer content for
Content | BoxContent | null
default:"null"
Footer content to display, or
null for no footerexportToJSON()
T
The log to export
string
default:"JSON.stringify(log)"
JSON string representation of the log
Example
See Also
- Plugin Methods - Detailed explanation of plugin methods
- Creating Custom Plugins - Guide to building custom plugins