UNPKG

@koreanpanda/inscriber

Version:

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

33 lines (32 loc) 1.71 kB
/**======================================================================== * ? ABOUT * @author : Cody Spratford * @email : koreanpanda345@gmail.com * @repo : https://github.com/koreanpanda345/Inscriber * @createdOn : 11/14/2020 * @description : This is the Info Class. This handles all the info type's * methods. * @since : 11/15/2020 *========================================================================**/ import { Config } from "../global"; import { ILog } from "../interfaces/exports"; export declare class InfoClass implements ILog { constructor(config: Config, content: string | object, source: string); /**============================================== * @summary Writes to the warn logs to the log files. * @param content - The warn log * @param source - the source of the warn log. * @param filepath - the file location for the log. * @param config - The configuration of Inscriber. *=============================================**/ write(content: string, source: string, filepath: string, config: Config): void; /**============================================== * @summary Prints the warn log to the console. * @param content - the warn log. * @param source - The source of the warn log. * @param config - the configuration of Inscriber. *=============================================**/ print(content: string, source: string, config: Config): void; formatColors(config: Config, content: string): string; formatString(config: Config, source: string, content: string): string; }