From 9a71fea118ae854da620a549e79d7b3802fe986b Mon Sep 17 00:00:00 2001 From: Louis GUICHARD-MONTGUERS Date: Sat, 8 Feb 2025 19:34:16 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'WF-WebAdmin/WF-Web?= =?UTF-8?q?Admin/Model/LoggerSaveStub.cs'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WF-WebAdmin/Model/LoggerSaveStub.cs | 66 +++++++------------ 1 file changed, 25 insertions(+), 41 deletions(-) diff --git a/WF-WebAdmin/WF-WebAdmin/Model/LoggerSaveStub.cs b/WF-WebAdmin/WF-WebAdmin/Model/LoggerSaveStub.cs index 0920ee3..9c8b0ae 100644 --- a/WF-WebAdmin/WF-WebAdmin/Model/LoggerSaveStub.cs +++ b/WF-WebAdmin/WF-WebAdmin/Model/LoggerSaveStub.cs @@ -1,41 +1,25 @@ -using Microsoft.AspNetCore.Components; -using Microsoft.Extensions.Configuration.UserSecrets; -using Microsoft.Extensions.Logging; -using Microsoft.VisualBasic; -using System; -using System.Diagnostics; -using System.Security.Claims; -using WF_WebAdmin.Pages; -using WF_WebAdmin.Service; - -namespace WF_WebAdmin.Model -{ - public static partial class LoggerSaveStub - { - public static void Log(ILogger logs,LogLevel logLevel,string message) - { - - ILogsService logsService = new LogsServiceStub(); - logsService.addLogs( new Logs( logLevel , message ) ); - - logs.Log(logLevel, message ); - } - } -} - -/* -[Inject] -public ILogger< Class > Logger { get; set; } - -LoggerSaveStub.Log(Logger,LogLevel. level , message ); - - -LogLevel: -Trace = 0, -Debug = 1, -Information = 2, -Warning = 3, -Error = 4, -Critical = 5, -None = 6, -*/ \ No newline at end of file +using Microsoft.AspNetCore.Components; +using Microsoft.Extensions.Configuration.UserSecrets; +using Microsoft.Extensions.Logging; +using Microsoft.VisualBasic; +using System; +using System.Diagnostics; +using System.Security.Claims; +using WF_WebAdmin.Pages; +using WF_WebAdmin.Service; + +namespace WF_WebAdmin.Model +{ + public static partial class LoggerSaveStub + { + public static void Log(ILogger logs,LogLevel logLevel,string message) + { + + ILogsService logsService = new LogsServiceStub(); + logsService.addLogs( new Logs( logLevel , message ) ); + + logs.Log(logLevel, message ); + } + } +} +