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
The specific log type this plugin handles. Must extend
BeagleLog.Properties
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()
The log to check
TypeScript type predicate that narrows the log type to
T if the plugin can handle itprovideDetailContent()
The log to generate content for
The detail content structure, either
ListContent or TabBarContentOptional Methods
These methods have default implementations but can be overridden.provideCardFooter()
The log to generate footer content for
Footer content to display, or
null for no footerexportToJSON()
The log to export
JSON string representation of the log
Example
See Also
- Plugin Methods - Detailed explanation of plugin methods
- Creating Custom Plugins - Guide to building custom plugins