2024-05-21 19:59:04 +02:00
|
|
|
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";
|
2023-11-02 16:58:16 +01:00
|
|
|
|
|
|
|
export class WinstonLogger implements ILogger
|
|
|
|
{
|
|
|
|
writeToLogFile(data: string | Daum): void
|
2023-11-16 02:35:05 +01:00
|
|
|
{}
|
2023-11-02 16:58:16 +01:00
|
|
|
|
|
|
|
log(data: string | Record<string, unknown> | Error, color: string, backgroundColor?: string): void
|
2023-11-16 02:35:05 +01:00
|
|
|
{}
|
2023-11-02 16:58:16 +01:00
|
|
|
|
2023-11-16 02:35:05 +01:00
|
|
|
logWithColor(
|
|
|
|
data: string | Record<string, unknown>,
|
|
|
|
textColor: LogTextColor,
|
|
|
|
backgroundColor?: LogBackgroundColor,
|
|
|
|
): void
|
|
|
|
{}
|
2023-11-02 16:58:16 +01:00
|
|
|
|
|
|
|
error(data: string): void
|
2023-11-16 02:35:05 +01:00
|
|
|
{}
|
2023-11-02 16:58:16 +01:00
|
|
|
|
|
|
|
warning(data: string): void
|
2023-11-16 02:35:05 +01:00
|
|
|
{}
|
2023-11-02 16:58:16 +01:00
|
|
|
|
|
|
|
success(data: string): void
|
2023-11-16 02:35:05 +01:00
|
|
|
{}
|
2023-11-02 16:58:16 +01:00
|
|
|
|
|
|
|
info(data: string): void
|
2023-11-16 02:35:05 +01:00
|
|
|
{}
|
2023-11-02 16:58:16 +01:00
|
|
|
|
2023-11-16 02:35:05 +01:00
|
|
|
debug(data: string | Record<string, unknown>, onlyShowInConsole?: boolean): void
|
|
|
|
{}
|
2023-11-02 16:58:16 +01:00
|
|
|
}
|