Server/project/tests/__mocks__/WinstonLogger.mock.ts

27 lines
877 B
TypeScript
Raw Normal View History

import { Daum } from "@spt/models/eft/itemEvent/IItemEventRouterRequest";
import { LogBackgroundColor } from "@spt/models/spt/logging/LogBackgroundColor";
import { LogTextColor } from "@spt/models/spt/logging/LogTextColor";
import { ILogger } from "@spt/models/spt/utils/ILogger";
export class WinstonLogger implements ILogger {
writeToLogFile(data: string | Daum): void {}
log(data: string | Record<string, unknown> | Error, color: string, backgroundColor?: string): void {}
2023-11-16 02:35:05 +01:00
logWithColor(
data: string | Record<string, unknown>,
textColor: LogTextColor,
backgroundColor?: LogBackgroundColor,
): void {}
error(data: string): void {}
warning(data: string): void {}
success(data: string): void {}
info(data: string): void {}
debug(data: string | Record<string, unknown>, onlyShowInConsole?: boolean): void {}
}