From 7fc5a8a190b8f2b3516219a5dadb0190d9baeb18 Mon Sep 17 00:00:00 2001 From: Cj <161484149+CJ-SPT@users.noreply.github.com> Date: Mon, 6 Jan 2025 01:54:59 -0500 Subject: [PATCH] Fix ILogger usings --- Core/Servers/HttpServer.cs | 1 - Core/Services/LocalisationService.cs | 5 ++--- Core/Utils/Logging/SimpleTextLogger.cs | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Core/Servers/HttpServer.cs b/Core/Servers/HttpServer.cs index c74ccfd0..c4d9b749 100644 --- a/Core/Servers/HttpServer.cs +++ b/Core/Servers/HttpServer.cs @@ -6,7 +6,6 @@ using Core.Services; using Microsoft.Extensions.Primitives; using Core.Annotations; using ILogger = Core.Models.Utils.ILogger; -using Utils_ILogger = Core.Models.Utils.ILogger; namespace Core.Servers; diff --git a/Core/Services/LocalisationService.cs b/Core/Services/LocalisationService.cs index 87b0de06..cbf8dfef 100644 --- a/Core/Services/LocalisationService.cs +++ b/Core/Services/LocalisationService.cs @@ -2,21 +2,20 @@ using Core.Annotations; using Core.Servers; using ILogger = Core.Models.Utils.ILogger; -using Utils_ILogger = Core.Models.Utils.ILogger; namespace Core.Services; [Injectable(InjectionType.Singleton)] public class LocalisationService { - private readonly Utils_ILogger _logger; + private readonly ILogger _logger; private readonly RandomUtil _randomUtil; private readonly DatabaseServer _databaseServer; private readonly LocaleService _localeService; private readonly I18nService _i18nService; public LocalisationService( - Utils_ILogger logger, + ILogger logger, RandomUtil randomUtil, DatabaseServer databaseServer, LocaleService localeService diff --git a/Core/Utils/Logging/SimpleTextLogger.cs b/Core/Utils/Logging/SimpleTextLogger.cs index beb1f2a0..989b41fa 100644 --- a/Core/Utils/Logging/SimpleTextLogger.cs +++ b/Core/Utils/Logging/SimpleTextLogger.cs @@ -1,12 +1,11 @@ using Core.Models.Logging; using Core.Annotations; using ILogger = Core.Models.Utils.ILogger; -using Utils_ILogger = Core.Models.Utils.ILogger; namespace Core.Utils.Logging; [Injectable(InjectionType.Singleton)] -public class SimpleTextLogger : Utils_ILogger +public class SimpleTextLogger : ILogger { // TODO: for now we simplify the logger into this barebones console writer public void WriteToLogFile(string data)