From 635688fb9d0ce44d792bc8a921cbb7c36a81dac0 Mon Sep 17 00:00:00 2001 From: Muihd <1083092844@qq.com> Date: Wed, 1 May 2024 13:20:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A5=E5=BF=97=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BarrageGrab/Logger.cs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/BarrageGrab/Logger.cs b/BarrageGrab/Logger.cs index 507e082..7e7a532 100644 --- a/BarrageGrab/Logger.cs +++ b/BarrageGrab/Logger.cs @@ -23,14 +23,6 @@ namespace BarrageGrab Console.ForegroundColor = color; } - public static void LogSucc(string message) - { - var color = Console.ForegroundColor; - Console.ForegroundColor = ConsoleColor.Green; - logger.Info(message); - Console.ForegroundColor = color; - } - // 记录日志方法 public static void LogTrace(string message) { @@ -49,42 +41,31 @@ namespace BarrageGrab public static void LogWarn(string message) { - var color = Console.ForegroundColor; - Console.ForegroundColor = ConsoleColor.Yellow; logger.Warn(message); - Console.ForegroundColor = color; } public static void LogError(string message) { var color = Console.ForegroundColor; - Console.ForegroundColor = ConsoleColor.Red; logger.Error(message); - Console.ForegroundColor = color; } public static void LogError(Exception ex, string message) { var color = Console.ForegroundColor; - Console.ForegroundColor = ConsoleColor.Red; logger.Error(ex, message); - Console.ForegroundColor = color; } public static void LogFatal(string message) { var color = Console.ForegroundColor; - Console.ForegroundColor = ConsoleColor.Red; logger.Fatal(message); - Console.ForegroundColor = color; } public static void LogFatal(Exception ex, string message) { var color = Console.ForegroundColor; - Console.ForegroundColor = ConsoleColor.Red; logger.Fatal(ex, message); - Console.ForegroundColor = color; } ///