Luxar Viewer API Documentation - v2026.10.19
    Preparing search index...

    Variable logConst

    log: {
        info: (module: string, message: string, ...args: unknown[]) => void;
        success: (module: string, message: string, ...args: unknown[]) => void;
        error: (module: string, message: string, ...args: unknown[]) => void;
        warning: (module: string, message: string, ...args: unknown[]) => void;
        debug: (module: string, message: string, ...args: unknown[]) => void;
        load: (module: string, message: string, ...args: unknown[]) => void;
        update: (module: string, message: string, ...args: unknown[]) => void;
        query: (module: string, message: string, ...args: unknown[]) => void;
        data: (module: string, message: string, ...args: unknown[]) => void;
        custom: (
            emoji: string,
            module: string,
            message: string,
            ...args: unknown[],
        ) => void;
        verbose: (
            emoji: string,
            module: string,
            message: string | (() => string),
            ...args: unknown[],
        ) => void;
        raw: (formattedMessage: string, ...args: unknown[]) => void;
    } = ...

    Quick logging functions that maintain consistent format These work directly with console methods so the interceptor captures them

    Type Declaration

    • info: (module: string, message: string, ...args: unknown[]) => void
    • success: (module: string, message: string, ...args: unknown[]) => void
    • error: (module: string, message: string, ...args: unknown[]) => void
    • warning: (module: string, message: string, ...args: unknown[]) => void
    • debug: (module: string, message: string, ...args: unknown[]) => void

      console.debug — hidden at the browser's default console level. For an expected, environment-driven condition worth one line to someone looking, but not a warning to everyone else (OPFS absent on an insecure origin).

    • load: (module: string, message: string, ...args: unknown[]) => void
    • update: (module: string, message: string, ...args: unknown[]) => void
    • query: (module: string, message: string, ...args: unknown[]) => void
    • data: (module: string, message: string, ...args: unknown[]) => void
    • custom: (emoji: string, module: string, message: string, ...args: unknown[]) => void
    • verbose: (
          emoji: string,
          module: string,
          message: string | (() => string),
          ...args: unknown[],
      ) => void

      Detail line printed only under ?verboseLog. Use for anything emitted per spatial query, per partition part or per rung: those run thousands of times per slice step on large trees. Pass a thunk when building the message is not free; it is only called when verbose logging is on.

    • raw: (formattedMessage: string, ...args: unknown[]) => void