LensStudio:Logger
ModuleModule providing log collection and monitoring functionality for Lens Studio plugins.
Example
// LensStudio:Logger provides IUserLogCollector for collecting user log output.
const { IUserLogCollector } = await import('LensStudio:Logger');
const logCollector = this.pluginSystem.findInterface(
IUserLogCollector.interfaceId
) as import('LensStudio:Logger').IUserLogCollector;
if (!Editor.isNull(logCollector)) {
// Listen for requests to reveal a specific log entry
this.connections.push(
logCollector.onRevealLogRequest.connect((logId: string) => {
console.log('Reveal log requested for:', logId);
})
);
}
Classes
| Class | Description |
|---|---|
| IUserLogCollector | Plugin component interface for collecting and exposing user log data. |