From 58ce875b4d7d5c3774c241bec2d787cc24b31cd3 Mon Sep 17 00:00:00 2001 From: walterlv Date: Thu, 22 Aug 2024 10:37:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E5=86=99=E7=BA=BF=E7=A8=8B=E4=B8=8D?= =?UTF-8?q?=E5=AE=89=E5=85=A8=E7=9A=84=E6=8E=A7=E5=88=B6=E5=8F=B0=E8=BE=93?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LoggerSample.MainApp.csproj | 2 +- samples/LoggerSample.MainApp/Program.cs | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/samples/LoggerSample.MainApp/LoggerSample.MainApp.csproj b/samples/LoggerSample.MainApp/LoggerSample.MainApp.csproj index 7788b98..c2e7e96 100644 --- a/samples/LoggerSample.MainApp/LoggerSample.MainApp.csproj +++ b/samples/LoggerSample.MainApp/LoggerSample.MainApp.csproj @@ -1,7 +1,7 @@  - WinExe + Exe net8.0 preferReference diff --git a/samples/LoggerSample.MainApp/Program.cs b/samples/LoggerSample.MainApp/Program.cs index d3684d8..ea757ab 100644 --- a/samples/LoggerSample.MainApp/Program.cs +++ b/samples/LoggerSample.MainApp/Program.cs @@ -1,4 +1,6 @@ -using dotnetCampus.Logging.Attributes; +using System; +using System.Threading.Tasks; +using dotnetCampus.Logging.Attributes; using dotnetCampus.Logging.Configurations; using dotnetCampus.Logging.Writers; @@ -31,6 +33,16 @@ public static void Main(string[] args) .AddBridge(LoggerBridgeLinker.Default) .Build() .IntoGlobalStaticLog(); + + Run(); + } + + private static void Run() + { + Parallel.For(0, 0x00010000, i => + { + Log.Debug($"[TEST] {DateTime.Now:HH:mm:ss}"); + }); } }