Module providing log collection and monitoring functionality for Lens Studio plugins.
// 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); }) ); } Copy
// 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); }) ); }
Module providing log collection and monitoring functionality for Lens Studio plugins.
Example