From e895e086cb1d89a49ea17e55dc156b9eef6744e3 Mon Sep 17 00:00:00 2001 From: Cold-Mint Date: Wed, 17 Jul 2024 20:51:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=97=A0=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ColdMint.Traveler.csproj | 2 -- scripts/debug/LogCat.cs | 22 ---------------------- 2 files changed, 24 deletions(-) diff --git a/ColdMint.Traveler.csproj b/ColdMint.Traveler.csproj index c8681d1..9ba3342 100644 --- a/ColdMint.Traveler.csproj +++ b/ColdMint.Traveler.csproj @@ -10,8 +10,6 @@ - - \ No newline at end of file diff --git a/scripts/debug/LogCat.cs b/scripts/debug/LogCat.cs index f3a434a..aaab15b 100644 --- a/scripts/debug/LogCat.cs +++ b/scripts/debug/LogCat.cs @@ -4,9 +4,6 @@ using System.Text; using ColdMint.scripts.openObserve; using ColdMint.scripts.utils; using Godot; -using Microsoft.Extensions.Logging; -using OpenTelemetry.Exporter; -using OpenTelemetry.Logs; namespace ColdMint.scripts.debug; @@ -125,25 +122,6 @@ public static class LogCat private static HashSet DisabledLogLabels { get; } = []; - public static void Init() - { - var loggerFactory = LoggerFactory.Create(builder => - { - builder.AddOpenTelemetry(options => { options.AddOtlpExporter(OtlpExporterOptions); }); - }); - var logger = loggerFactory.CreateLogger("323"); - logger.Log(LogLevel.Debug, "你好"); - } - - public static void OtlpExporterOptions(OtlpExporterOptions options) - { - options.Protocol = OtlpExportProtocol.HttpProtobuf; - options.Endpoint = new Uri("http://test.coldmint.top/api/default/traces"); - options.Headers = - "Authorization=Basic cm9vdEBleGFtcGxlLmNvbTp5V0kwVzZYcWhteTBzQml3,organization=default,stream-name=default"; - } - - /// /// Disable log Label /// 禁用某个日志标签