From c0d79918fc53284bd00f8a99d3bd124634a2105f Mon Sep 17 00:00:00 2001 From: bicijinlian Date: Sun, 6 Nov 2022 20:57:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=96=B0=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LogStudy.EventLog.Next/LogStudy.EventLog.Next.csproj | 10 ++++++++++ LogStudy.EventLog.Next/Program.cs | 10 ++++++++++ LogStudy.TraceLog/Program.cs | 2 +- LogStudy.sln | 7 +++++++ 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 LogStudy.EventLog.Next/LogStudy.EventLog.Next.csproj create mode 100644 LogStudy.EventLog.Next/Program.cs diff --git a/LogStudy.EventLog.Next/LogStudy.EventLog.Next.csproj b/LogStudy.EventLog.Next/LogStudy.EventLog.Next.csproj new file mode 100644 index 0000000..74abf5c --- /dev/null +++ b/LogStudy.EventLog.Next/LogStudy.EventLog.Next.csproj @@ -0,0 +1,10 @@ + + + + Exe + net6.0 + enable + enable + + + diff --git a/LogStudy.EventLog.Next/Program.cs b/LogStudy.EventLog.Next/Program.cs new file mode 100644 index 0000000..5a7889a --- /dev/null +++ b/LogStudy.EventLog.Next/Program.cs @@ -0,0 +1,10 @@ +namespace LogStudy.EventLog.Next +{ + internal class Program + { + static void Main(string[] args) + { + Console.WriteLine("Hello, World!"); + } + } +} \ No newline at end of file diff --git a/LogStudy.TraceLog/Program.cs b/LogStudy.TraceLog/Program.cs index 32c96f2..408932e 100644 --- a/LogStudy.TraceLog/Program.cs +++ b/LogStudy.TraceLog/Program.cs @@ -76,7 +76,7 @@ void UseCustomListener2() //使用系统监听器 void UseSystemListener() { - var source = new TraceSource("System.ListenerTraceLog", SourceLevels.All); + var source = new TraceSource("System-ListenerTraceLog", SourceLevels.All); source.Listeners.Clear(); source.Listeners.Add(new ConsoleTraceListener()); diff --git a/LogStudy.sln b/LogStudy.sln index 0c01e79..1d524b4 100644 --- a/LogStudy.sln +++ b/LogStudy.sln @@ -24,6 +24,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LogStudy.EventLog", "LogStu EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LogStudy.DiagnosticLog", "LogStudy.DiagnosticLog\LogStudy.DiagnosticLog.csproj", "{73AC3F84-DC11-4F53-A729-0EA09E124E6E}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LogStudy.EventLog.Next", "LogStudy.EventLog.Next\LogStudy.EventLog.Next.csproj", "{D77E4B1E-D839-446B-AB96-46CC5E07D36F}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -50,6 +52,10 @@ Global {73AC3F84-DC11-4F53-A729-0EA09E124E6E}.Debug|Any CPU.Build.0 = Debug|Any CPU {73AC3F84-DC11-4F53-A729-0EA09E124E6E}.Release|Any CPU.ActiveCfg = Release|Any CPU {73AC3F84-DC11-4F53-A729-0EA09E124E6E}.Release|Any CPU.Build.0 = Release|Any CPU + {D77E4B1E-D839-446B-AB96-46CC5E07D36F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D77E4B1E-D839-446B-AB96-46CC5E07D36F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D77E4B1E-D839-446B-AB96-46CC5E07D36F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D77E4B1E-D839-446B-AB96-46CC5E07D36F}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -59,6 +65,7 @@ Global {3D1FA013-7BAC-4D62-B35B-8B444DB7FE8C} = {353B9475-1064-473D-B3EE-CF3A9BBA4102} {372EA389-4C91-4B05-8270-86788D48F45D} = {78E9B0D7-537A-4791-BE80-E2BA04D8A5AA} {73AC3F84-DC11-4F53-A729-0EA09E124E6E} = {D91AB187-F922-47DE-87ED-D3785F4E8D7B} + {D77E4B1E-D839-446B-AB96-46CC5E07D36F} = {78E9B0D7-537A-4791-BE80-E2BA04D8A5AA} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {4D9A3A36-98D0-498C-B78A-2E5CFC5195AC}