UNPKG

@koreanpanda/inscriber

Version:

A Logger that can write logs, and print them, with full customization.

15 lines (14 loc) 882 B
import { Config } from "../global"; import { ILog } from "../interfaces/exports"; /**======================================================================== * ERROR CLASS * - TODO Add Javascript Error Support. * - TODO Add More support to other Error Types. *========================================================================**/ export declare class ErrorClass implements ILog { constructor(config: Config, content: string | object | number | boolean | symbol | Error | TypeError | EvalError | RangeError | SyntaxError, source: string); write(content: string, source: string, filepath: string, config: Config): void; print(content: string, source: string, config: Config): void; formatString(config: Config, source: string, content: string): string; formatColors(config: Config, content: string): string; }