Interface ILoggerAdapter

Interface defining methods for interacting with a logger adapter. Implemented by LoggerUtils to provide client-specific logging operations.

interface ILoggerAdapter {
    debug(clientId: string, topic: string, ...args: any[]): Promise<void>;
    dispose(clientId: string): Promise<void>;
    info(clientId: string, topic: string, ...args: any[]): Promise<void>;
    log(clientId: string, topic: string, ...args: any[]): Promise<void>;
}

Methods

  • Logs a debug message for a client using the client-specific logger instance. Ensures session validation and initialization before logging.

    Parameters

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

    Returns Promise<void>

  • Disposes of the logger instance for a client, clearing it from the cache. Ensures initialization before disposal.

    Parameters

    • clientId: string

    Returns Promise<void>

  • Logs an info message for a client using the client-specific logger instance. Ensures session validation and initialization before logging.

    Parameters

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

    Returns Promise<void>

  • Logs a message for a client using the client-specific logger instance. Ensures session validation and initialization before logging.

    Parameters

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

    Returns Promise<void>