UNPKG

xinc

Version:

基于napcat,node-napcat-ts的bot框架

18 lines (17 loc) 493 B
export type LogLevel = 'debug' | 'info' | 'warn' | 'error' | 'silent'; export declare class Logger { private level; private logFile; private logStream; constructor(level?: LogLevel); private getLevelPriority; private shouldLog; private getTimestamp; private formatLogMessage; private writeToFile; debug(...args: any[]): void; info(...args: any[]): void; warn(...args: any[]): void; error(...args: any[]): void; close(): Promise<void>; }