From 155fceeb71384add7c1b144e7e42f8a18aa06136 Mon Sep 17 00:00:00 2001 From: EonaCat Date: Mon, 26 Jan 2026 20:51:32 +0100 Subject: [PATCH] Updated --- EonaCat.Logger.Server/Server.cs | 2 +- EonaCat.Logger/EonaCatCoreLogger/DatabaseLogger.cs | 2 +- EonaCat.Logger/Extensions/ExceptionExtensions.cs | 3 ++- EonaCat.Logger/Extensions/ObjectExtensions.cs | 4 ++-- EonaCat.Logger/Logger.cs | 5 +++++ EonaCat.Logger/Managers/LogHelper.cs | 2 +- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/EonaCat.Logger.Server/Server.cs b/EonaCat.Logger.Server/Server.cs index 2661a23..bb36864 100644 --- a/EonaCat.Logger.Server/Server.cs +++ b/EonaCat.Logger.Server/Server.cs @@ -261,7 +261,7 @@ namespace EonaCat.Logger.Server { char[] buffer = new char[8192]; // 8KB buffer size for large data int bytesRead; - StringBuilderChill logData = new StringBuilderChill(); + StringBuilder logData = new StringBuilder(); while ((bytesRead = await reader.ReadAsync(buffer, 0, buffer.Length)) > 0) { diff --git a/EonaCat.Logger/EonaCatCoreLogger/DatabaseLogger.cs b/EonaCat.Logger/EonaCatCoreLogger/DatabaseLogger.cs index 2aa2167..8e048c1 100644 --- a/EonaCat.Logger/EonaCatCoreLogger/DatabaseLogger.cs +++ b/EonaCat.Logger/EonaCatCoreLogger/DatabaseLogger.cs @@ -195,5 +195,5 @@ namespace EonaCat.Logger.EonaCatCoreLogger public string Exception { get; init; } public string CorrelationId { get; init; } } - } + } } diff --git a/EonaCat.Logger/Extensions/ExceptionExtensions.cs b/EonaCat.Logger/Extensions/ExceptionExtensions.cs index 21c4b02..5d67c3f 100644 --- a/EonaCat.Logger/Extensions/ExceptionExtensions.cs +++ b/EonaCat.Logger/Extensions/ExceptionExtensions.cs @@ -1,4 +1,5 @@ -using System; +using EonaCat.Json; +using System; using System.Collections; using System.Diagnostics; using System.Text; diff --git a/EonaCat.Logger/Extensions/ObjectExtensions.cs b/EonaCat.Logger/Extensions/ObjectExtensions.cs index 8fe4967..31f5289 100644 --- a/EonaCat.Logger/Extensions/ObjectExtensions.cs +++ b/EonaCat.Logger/Extensions/ObjectExtensions.cs @@ -100,13 +100,13 @@ namespace EonaCat.Logger.Extensions private static string DumpTree(object currentObject, int? maxDepth, int? maxCollectionItems) { - var stringBuilder = new StringBuilderChill(); + var stringBuilder = new StringBuilder(); var visitedHashSet = new HashSet(new ReferenceEqualityComparer()); DumpTreeInternal(currentObject, stringBuilder, 0, visitedHashSet, maxDepth, maxCollectionItems); return stringBuilder.ToString(); } - private static void DumpTreeInternal(object currentObject, StringBuilderChill stringBuilder, int indent, HashSet visited, int? maxDepth, int? maxCollectionItems) + private static void DumpTreeInternal(object currentObject, StringBuilder stringBuilder, int indent, HashSet visited, int? maxDepth, int? maxCollectionItems) { string indentation = new string(' ', indent * 2); diff --git a/EonaCat.Logger/Logger.cs b/EonaCat.Logger/Logger.cs index 4cec9cb..34e8ac6 100644 --- a/EonaCat.Logger/Logger.cs +++ b/EonaCat.Logger/Logger.cs @@ -5,6 +5,11 @@ using System.Collections.Generic; using System.IO; using System.Threading.Tasks; +namespace System.Runtime.CompilerServices +{ + internal static class IsExternalInit { } +} + namespace EonaCat.Logger { // This file is part of the EonaCat project(s) which is released under the Apache License. diff --git a/EonaCat.Logger/Managers/LogHelper.cs b/EonaCat.Logger/Managers/LogHelper.cs index 9449028..f775502 100644 --- a/EonaCat.Logger/Managers/LogHelper.cs +++ b/EonaCat.Logger/Managers/LogHelper.cs @@ -83,7 +83,7 @@ public static class LogHelper } category ??= "General"; - var sb = new StringBuilderChill(settings?.HeaderFormat); + var sb = new StringBuilder(settings?.HeaderFormat); var timestamp = dateTime.ToString(settings?.TimestampFormat ?? "yyyy-MM-dd HH:mm:ss"); var timeLabel = settings?.UseLocalTime ?? false ? "[LOCAL]" : "[UTC]";