KC's Workspace
    Preparing search index...

    Interface ILogger<NS>

    Public logger contract for the logging module.

    interface ILogger<NS extends string> {
        isDebug: boolean;
        namespace: NS;
        debug(format: string, ...args: unknown[]): void;
        endGroup(): void;
        error(format: string, ...args: unknown[]): void;
        extend<SS extends string[]>(
            ...segments: SS,
        ): ILogger<ExtendNamespace<NS, SS>>;
        group<R>(title: string, run: Getter<Promise<R>>): Promise<R>;
        groupSync<R>(title: string, run: Getter<R>): R;
        info(format: string, ...args: unknown[]): void;
        notice(format: string, ...args: unknown[]): void;
        startGroup(title: string): void;
        warn(format: string, ...args: unknown[]): void;
    }

    Type Parameters

    • NS extends string

      Full namespace represented by this logger instance.

    Index
    isDebug: boolean

    Whether debug logging is enabled

    namespace: NS

    The namespace of this logger (colon-separated segments)