@kaynooo/utils
    Preparing search index...

    Function declareLogger

    • error: 0, warning: 1, success: 2, info: 3 will only log if level <= option.logLevel

      Parameters

      • Optionaloptions: { logLevel?: number; onLog?: (log: string) => void | Promise<void> }

      Returns (level: "error" | "warning" | "success" | "info", ...messages: any[]) => void