UNPKG

guildwars2-ts

Version:

GuildWars 2 API Wrapper in Typescript

33 lines (32 loc) 722 B
import { type ILogObj, Logger } from 'tslog'; /** * TSlog log level */ export declare enum LogLevel { error = 5, warn = 4, info = 3, debug = 2 } /** * Global logger object */ export declare const logger: Logger<ILogObj>; /** * Set logger level * * @param minLevel - Minimum logging level */ export declare const setLogLevel: (minLevel: LogLevel) => void; /** * Set whether the logger will display file paths * * @param displayFilePath - Filepath status */ export declare const setPathLogging: (displayFilePath: boolean) => void; /** * Set whether the logger will use colors in console * * @param status - Log style toggle */ export declare const enableLogColors: (status: boolean) => void;