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

36 lines
925 B
TypeScript
Raw Normal View History

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