gbx
Version:
a slim, fast and easy to set up Gamebox (GBX) parser written in TypeScript
42 lines (41 loc) • 1.24 kB
TypeScript
/**
* Handles logging.
*/
export default class Logger {
static showLogs: boolean;
static showDebug: boolean;
static showWarns: boolean;
static reset: string;
/**
* Highlights the given text with the specified color.
* @param text The text to highlight.
* @param colorCode The color code to use.
* @returns The highlighted text.
*/
private static highlight;
/**
* Logs the given arguments to the console with the info prefix.
* @param args The arguments to log.
*/
static log(...args: any[]): void;
/**
* Logs the given arguments to the console with the debug prefix.
* @param args The arguments to log.
*/
static debug(...args: any[]): void;
/**
* Logs the given arguments to the console with the warn prefix.
* @param args The arguments to log.
*/
static warn(...args: any[]): void;
/**
* Logs the given arguments to the console with the error prefix.
* @param args The arguments to log.
*/
static error(...args: any[]): void;
/**
* Logs the given arguments to the console in a visible way.
* @param args The arguments to log.
*/
static outline(...args: any[]): void;
}