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 /// 禁用某个日志标签