GeoLeaf Core API - v3.19.0
    Preparing search index...

    Variable ErrorLoggerConst

    ErrorLogger: {
        LEVELS: { ERROR: "error"; WARN: "warn"; INFO: "info"; DEBUG: "debug" };
        error(module: string, message: string, error?: unknown): void;
        warn(module: string, message: string): void;
        info(module: string, message: string): void;
        debug(module: string, message: string): void;
        quotaError(module: string, available: number, needed: number): void;
        networkError(
            module: string,
            url: string,
            status: string | number,
            error?: unknown,
        ): void;
        validationError(
            module: string,
            field: string,
            expectedFormat: string,
        ): void;
        idbError(module: string, operation: string, error?: unknown): void;
        performance(module: string, operation: string, milliseconds: number): void;
        memoryWarning(module: string, usedMB: number): void;
        operation(module: string, operation: string): ErrorLoggerOperationContext;
    } = ...

    Module-tagged error reporting, layered on top of Log.

    Where Log takes a free-form message, every method here takes the emitting module as its first argument and renders [module] message, so the origin is uniform across the codebase instead of being re-typed at each call site.

    Two behaviours worth knowing: error() also prints the stack when the value carries one, and every method guards on Log being present — this module is reachable before boot and in consumers that tree-shook the logger, where debug() falls back to the console directly rather than recursing.

    Type Declaration