Normalize code style across multiple packages: whitespace cleanup, consistent commas and trailing commas in arrays/enums/objects, fix table markdown lines in CI comment template, ensure newline at EOF, normalize header/object property quoting and spacing, remove stray blank lines and minor non-functional comment tweaks. These are formatting-only changes and small type/annotation spacing adjustments; no functional behavior changes intended.
25 lines
803 B
TypeScript
25 lines
803 B
TypeScript
export enum LogLevel {
|
|
DEBUG = 'debug',
|
|
INFO = 'info',
|
|
WARN = 'warn',
|
|
ERROR = 'error',
|
|
FATAL = 'fatal',
|
|
}
|
|
export interface ILogWrapper {
|
|
fileLogEnabled: boolean;
|
|
consoleLogEnabled: boolean;
|
|
cleanOldLogs (logDir: string): void;
|
|
setFileAndConsoleLogLevel (fileLogLevel: LogLevel, consoleLogLevel: LogLevel): void;
|
|
setLogSelfInfo (selfInfo: { nick: string; uid: string; }): void;
|
|
setFileLogEnabled (isEnabled: boolean): void;
|
|
setConsoleLogEnabled (isEnabled: boolean): void;
|
|
formatMsg (msg: any[]): string;
|
|
_log (level: LogLevel, ...args: any[]): void;
|
|
log (...args: any[]): void;
|
|
logDebug (...args: any[]): void;
|
|
logError (...args: any[]): void;
|
|
logWarn (...args: any[]): void;
|
|
logFatal (...args: any[]): void;
|
|
logMessage (msg: unknown, selfInfo: unknown): void;
|
|
}
|