spectra-log
Version:
SpectraLog enables you to apply various colors to your log messages, enhancing readability and making your logs visually dynamic.
20 lines (17 loc) • 673 B
text/typescript
type DebugLevelString = "MUTE" | "TRACE" | "DEBUG" | "INFO" | "ERROR" | "FATAL" | "NOTLVL";
type LogOption = {
urgent?: boolean;
force?: boolean;
silent?: boolean;
};
declare const log: {
(message: any, type?: number, level?: DebugLevelString, option?: LogOption): void;
setDebugLevel(level: DebugLevelString, options?: {
silent: boolean;
}): void;
setPrintSpeed(delay: number, option?: LogOption): void;
setSmoothPrint(value: any, options?: LogOption): void;
setDisplayStandby(value: boolean, options?: {}): void;
setDisplayStandBy(value: boolean, options?: LogOption): void;
};
export { type LogOption, log as default };