From c666730b3477b4c02c607a0a4514e56c08979ca1 Mon Sep 17 00:00:00 2001 From: EonaCat Date: Mon, 26 Jan 2026 20:45:39 +0100 Subject: [PATCH] Updated --- EonaCat.Logger.LogClient/EonaCat.Logger.LogClient.csproj | 2 +- EonaCat.Logger.Server/Server.cs | 2 +- EonaCat.Logger/EonaCat.Logger.csproj | 8 +++++--- EonaCat.Logger/Extensions/ExceptionExtensions.cs | 6 +++--- EonaCat.Logger/Extensions/ObjectExtensions.cs | 4 ++-- EonaCat.Logger/Managers/LogHelper.cs | 2 +- EonaCat.Logger/version.txt | 1 + .../EonaCat.Logger.Test.Web.csproj | 2 +- 8 files changed, 15 insertions(+), 12 deletions(-) create mode 100644 EonaCat.Logger/version.txt diff --git a/EonaCat.Logger.LogClient/EonaCat.Logger.LogClient.csproj b/EonaCat.Logger.LogClient/EonaCat.Logger.LogClient.csproj index cf84245..3a539d1 100644 --- a/EonaCat.Logger.LogClient/EonaCat.Logger.LogClient.csproj +++ b/EonaCat.Logger.LogClient/EonaCat.Logger.LogClient.csproj @@ -25,7 +25,7 @@ - + diff --git a/EonaCat.Logger.Server/Server.cs b/EonaCat.Logger.Server/Server.cs index bb36864..2661a23 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; - StringBuilder logData = new StringBuilder(); + StringBuilderChill logData = new StringBuilderChill(); while ((bytesRead = await reader.ReadAsync(buffer, 0, buffer.Length)) > 0) { diff --git a/EonaCat.Logger/EonaCat.Logger.csproj b/EonaCat.Logger/EonaCat.Logger.csproj index 0353e87..1bb4559 100644 --- a/EonaCat.Logger/EonaCat.Logger.csproj +++ b/EonaCat.Logger/EonaCat.Logger.csproj @@ -13,6 +13,8 @@ EonaCat (Jeroen Saey) EonaCat;Logger;EonaCatLogger;Log;Writer;Jeroen;Saey + 1.5.6 + 1.5.6 README.md True LICENSE @@ -23,7 +25,7 @@ - 1.5.5+{chash:10}.{c:ymd} + 1.5.6+{chash:10}.{c:ymd} true true v[0-9]* @@ -38,7 +40,7 @@ - + $(GeneratedVersion) @@ -61,7 +63,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/EonaCat.Logger/Extensions/ExceptionExtensions.cs b/EonaCat.Logger/Extensions/ExceptionExtensions.cs index cc27a79..21c4b02 100644 --- a/EonaCat.Logger/Extensions/ExceptionExtensions.cs +++ b/EonaCat.Logger/Extensions/ExceptionExtensions.cs @@ -28,7 +28,7 @@ public static class ExceptionExtensions filename = frame.GetFileName(); } - var sb = new StringBuilder(); + var sb = new StringBuilderChill(); sb.AppendLine(); sb.AppendLine($"--- Exception details provided by {DllInfo.ApplicationName} ---"); @@ -62,7 +62,7 @@ public static class ExceptionExtensions private static string FormatExceptionData(IDictionary data) { - var sb = new StringBuilder(); + var sb = new StringBuilderChill(); foreach (DictionaryEntry entry in data) { @@ -84,7 +84,7 @@ public static class ExceptionExtensions private static string FormatInnerException(Exception innerException) { - var sb = new StringBuilder(); + var sb = new StringBuilderChill(); sb.AppendLine(innerException.GetType().ToString()) .AppendLine(" Message : " + innerException.Message) diff --git a/EonaCat.Logger/Extensions/ObjectExtensions.cs b/EonaCat.Logger/Extensions/ObjectExtensions.cs index 31f5289..8fe4967 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 StringBuilder(); + var stringBuilder = new StringBuilderChill(); var visitedHashSet = new HashSet(new ReferenceEqualityComparer()); DumpTreeInternal(currentObject, stringBuilder, 0, visitedHashSet, maxDepth, maxCollectionItems); return stringBuilder.ToString(); } - private static void DumpTreeInternal(object currentObject, StringBuilder stringBuilder, int indent, HashSet visited, int? maxDepth, int? maxCollectionItems) + private static void DumpTreeInternal(object currentObject, StringBuilderChill stringBuilder, int indent, HashSet visited, int? maxDepth, int? maxCollectionItems) { string indentation = new string(' ', indent * 2); diff --git a/EonaCat.Logger/Managers/LogHelper.cs b/EonaCat.Logger/Managers/LogHelper.cs index f775502..9449028 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 StringBuilder(settings?.HeaderFormat); + var sb = new StringBuilderChill(settings?.HeaderFormat); var timestamp = dateTime.ToString(settings?.TimestampFormat ?? "yyyy-MM-dd HH:mm:ss"); var timeLabel = settings?.UseLocalTime ?? false ? "[LOCAL]" : "[UTC]"; diff --git a/EonaCat.Logger/version.txt b/EonaCat.Logger/version.txt new file mode 100644 index 0000000..7355334 --- /dev/null +++ b/EonaCat.Logger/version.txt @@ -0,0 +1 @@ +Version: 1.5.0+5d6a91ffb9.20260109 diff --git a/Testers/EonaCat.Logger.Test.Web/EonaCat.Logger.Test.Web.csproj b/Testers/EonaCat.Logger.Test.Web/EonaCat.Logger.Test.Web.csproj index b5aafed..e11238b 100644 --- a/Testers/EonaCat.Logger.Test.Web/EonaCat.Logger.Test.Web.csproj +++ b/Testers/EonaCat.Logger.Test.Web/EonaCat.Logger.Test.Web.csproj @@ -7,7 +7,7 @@ - + all