LensStudio:Logger.IUserLogCollector
ClassPlugin component interface for collecting and exposing user log data.
Index
Properties
Methods
Example
// IUserLogCollector extends IPluginComponent and provides the
// onRevealLogRequest signal for navigating to specific log entries.
const { IUserLogCollector } = await import('LensStudio:Logger');
const collector = this.pluginSystem.findInterface(
IUserLogCollector.interfaceId
) as import('LensStudio:Logger').IUserLogCollector;
if (!Editor.isNull(collector)) {
console.log('IUserLogCollector found');
this.connections.push(
collector.onRevealLogRequest.connect((logId: string) => {
console.log('User requested to reveal log entry:', logId);
})
);
}
Extends
Properties
interfaceId
staticinterfaceId:InterfaceId
Unique identifier for the IUserLogCollector interface.
onRevealLogRequest
readonlyonRevealLogRequest:signal1<string,void>
Signal fired when a log reveal is requested, providing the associated log string.
Methods
getTypeName()
staticgetTypeName():string
Returns the type name of this class.
Returns
string
Overrides
getTypeName()
getTypeName():
string
Returns the name of this object's type.
Returns
string
Inherited from
isOfType()
isOfType(
type):boolean
Returns true if the object is of the specified type.
Parameters
| Parameter | Type |
|---|---|
type | string |
Returns
boolean
Inherited from
isSame()
isSame(
other):boolean
Returns true if this object refers to the same instance as the given object.
Parameters
| Parameter | Type |
|---|---|
other | ScriptObject |
Returns
boolean