UNPKG

@callstack/reassure-logger

Version:
21 lines 1 kB
import { colors } from './colors'; export type LoggerOptions = { /** Silent all non-error logs */ silent: boolean; /** Show verbose-level logs (default not shown) */ verbose: boolean; }; export declare function configure(options: Partial<LoggerOptions>): void; export declare function error(message: string, ...args: unknown[]): void; export declare function warn(message: string, ...args: unknown[]): void; export declare function log(message: string, ...args: unknown[]): void; export declare function verbose(message: string, ...args: unknown[]): void; export declare function newLine(): void; export declare function color(color: keyof typeof colors, ...args: unknown[]): void; /** Log message that indicates progress of operation, does not output the trailing newline. */ export declare function progress(message: string): void; /** * Clears current lint. To be used in conjunction with `progress`. */ export declare function clearLine(): void; //# sourceMappingURL=logger.d.ts.map