UNPKG

@koreanpanda/inscriber

Version:

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

19 lines (18 loc) 1.08 kB
/**======================================================================== * ? ABOUT * @author : Cody Spratford * @email : koreanpanda345@gmail.com * @repo : https://github.com/koreanpanda345/Inscriber * @createdOn : 11/21/2020 * @description : This is the log method which will allow the users to make their own log methods. * @since : 11/21/2020 *========================================================================**/ import { Config } from ".."; import { CustomLogConfig } from "../global"; export declare class LogMethod { constructor(config: Config, content: string | object, source: string, type: string); write(content: string, source: string, filepath: string, type: string, config: Config): void; print(content: string, source: string, type: string, config: Config): void; formatColors(config: CustomLogConfig, content: string): string; formatString(source: string, content: string, pattern: string, type: string, timePattern: string): string; }