Interface ILoggerInstanceCallbacks

Callbacks for managing logger instance lifecycle and log events. Used by LoggerInstance to hook into initialization, disposal, and logging operations.

interface ILoggerInstanceCallbacks {
    onDebug(clientId: string, topic: string, ...args: any[]): void;
    onDispose(clientId: string): void;
    onInfo(clientId: string, topic: string, ...args: any[]): void;
    onInit(clientId: string): void;
    onLog(clientId: string, topic: string, ...args: any[]): void;
}

Methods

  • Called when a debug message is recorded via the debug method.

    Parameters

    • clientId: string
    • topic: string
    • ...args: any[]

    Returns void

  • Called when the logger instance is disposed, cleaning up resources.

    Parameters

    • clientId: string

    Returns void

  • Called when an info message is recorded via the info method.

    Parameters

    • clientId: string
    • topic: string
    • ...args: any[]

    Returns void

  • Called when the logger instance is initialized, typically during waitForInit.

    Parameters

    • clientId: string

    Returns void

  • Called when a log message is recorded via the log method.

    Parameters

    • clientId: string
    • topic: string
    • ...args: any[]

    Returns void