From e5bd3c162abca9b88f31ebdeaaf5f9e43770cf2b Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 29 May 2024 10:03:05 +0100 Subject: [PATCH] Updated example 1 to use `PrimaryLogger` --- TypeScript/1LogToConsole/src/mod.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TypeScript/1LogToConsole/src/mod.ts b/TypeScript/1LogToConsole/src/mod.ts index 4d54e46..f002128 100644 --- a/TypeScript/1LogToConsole/src/mod.ts +++ b/TypeScript/1LogToConsole/src/mod.ts @@ -11,12 +11,12 @@ class Mod implements IPreSptLoadMod public preSptLoad(container: DependencyContainer): void { // get the logger from the server container - const logger = container.resolve("WinstonLogger"); + const logger = container.resolve("PrimaryLogger"); 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!", LogTextColor.YELLOW, LogBackgroundColor.RED); + logger.logWithColor("I am logging with yellow text and a red background!", LogTextColor.YELLOW, LogBackgroundColor.RED); } }