From 54b3bc63e609c6fd4824d976c788a4320d235df9 Mon Sep 17 00:00:00 2001 From: Chomp Date: Tue, 26 Jul 2022 22:28:51 +0100 Subject: [PATCH] Update log example --- TypeScript/1LogToConsole/src/mod.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TypeScript/1LogToConsole/src/mod.ts b/TypeScript/1LogToConsole/src/mod.ts index 89e957c..25cbaa2 100644 --- a/TypeScript/1LogToConsole/src/mod.ts +++ b/TypeScript/1LogToConsole/src/mod.ts @@ -1,6 +1,8 @@ import { DependencyContainer } from "tsyringe"; import { IPreAkiLoadMod } from "@spt-aki/models/external/IPreAkiLoadMod"; import { ILogger } from "@spt-aki/models/spt/utils/ILogger"; +import { LogTextColor } from "@spt-aki/models/spt/logging/LogTextColor"; +import { LogBackgroundColor } from "@spt-aki/models/spt/logging/LogBackgroundColor"; class Mod implements IPreAkiLoadMod { @@ -12,7 +14,7 @@ class Mod implements IPreAkiLoadMod logger.info("I am logging info!"); logger.warning("I am logging a warning!"); logger.error("I am logging an error!"); - logger.logWithColor("I am logging with color!", red, yellow); + logger.logWithColor("I am logging with color!", LogTextColor.yellow, LogBackgroundColor.red); } }