UNPKG

@alwatr/logger

Version:

Fancy colorful console debugger with custom scope written in tiny TypeScript, ES module.

16 lines 604 B
import type { AlwatrLogger } from './type.js'; /** * Create a logger function for fancy console debug with custom scope. * * - **color** is optional and automatically select from internal fancy color list. * - **debug** is optional and automatically detect from localStorage `ALWATR_DEBUG` item or `process.env.ALWATR_DEBUG` * * Example: * * ```ts * import {createLogger} from 'https://esm.run/@alwatr/logger'; * const logger = createLogger('logger/demo'); * ``` */ export declare const createLogger: (domain: string, debugMode?: boolean) => AlwatrLogger; //# sourceMappingURL=logger.d.ts.map