Updated
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
</None>
|
</None>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="EonaCat.Logger" Version="1.5.4" />
|
<PackageReference Include="EonaCat.Logger" Version="1.5.5" />
|
||||||
<PackageReference Include="System.Net.Http.Json" Version="10.0.1" />
|
<PackageReference Include="System.Net.Http.Json" Version="10.0.1" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ namespace EonaCat.Logger.Server
|
|||||||
{
|
{
|
||||||
char[] buffer = new char[8192]; // 8KB buffer size for large data
|
char[] buffer = new char[8192]; // 8KB buffer size for large data
|
||||||
int bytesRead;
|
int bytesRead;
|
||||||
StringBuilder logData = new StringBuilder();
|
StringBuilderChill logData = new StringBuilderChill();
|
||||||
|
|
||||||
while ((bytesRead = await reader.ReadAsync(buffer, 0, buffer.Length)) > 0)
|
while ((bytesRead = await reader.ReadAsync(buffer, 0, buffer.Length)) > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,6 +13,8 @@
|
|||||||
<Copyright>EonaCat (Jeroen Saey)</Copyright>
|
<Copyright>EonaCat (Jeroen Saey)</Copyright>
|
||||||
<PackageTags>EonaCat;Logger;EonaCatLogger;Log;Writer;Jeroen;Saey</PackageTags>
|
<PackageTags>EonaCat;Logger;EonaCatLogger;Log;Writer;Jeroen;Saey</PackageTags>
|
||||||
<PackageIconUrl />
|
<PackageIconUrl />
|
||||||
|
<Version>1.5.6</Version>
|
||||||
|
<FileVersion>1.5.6</FileVersion>
|
||||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||||
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
||||||
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
||||||
@@ -23,7 +25,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<EVRevisionFormat>1.5.5+{chash:10}.{c:ymd}</EVRevisionFormat>
|
<EVRevisionFormat>1.5.6+{chash:10}.{c:ymd}</EVRevisionFormat>
|
||||||
<EVDefault>true</EVDefault>
|
<EVDefault>true</EVDefault>
|
||||||
<EVInfo>true</EVInfo>
|
<EVInfo>true</EVInfo>
|
||||||
<EVTagMatch>v[0-9]*</EVTagMatch>
|
<EVTagMatch>v[0-9]*</EVTagMatch>
|
||||||
@@ -38,7 +40,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<Target Name="EVPack" BeforeTargets="Pack">
|
<Target Name="EVPack" BeforeTargets="Pack">
|
||||||
<Message Text="EVPack: Forcing NuGet Version = $(GeneratedVersion)" Importance="High"/>
|
<Message Text="EVPack: Forcing NuGet Version = $(GeneratedVersion)" Importance="High" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>$(GeneratedVersion)</Version>
|
<Version>$(GeneratedVersion)</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@@ -61,7 +63,7 @@
|
|||||||
</None>
|
</None>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="EonaCat.Json" Version="1.2.0" />
|
<PackageReference Include="EonaCat.Json" Version="2.0.4" />
|
||||||
<PackageReference Include="EonaCat.Versioning" Version="1.2.8">
|
<PackageReference Include="EonaCat.Versioning" Version="1.2.8">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ public static class ExceptionExtensions
|
|||||||
filename = frame.GetFileName();
|
filename = frame.GetFileName();
|
||||||
}
|
}
|
||||||
|
|
||||||
var sb = new StringBuilder();
|
var sb = new StringBuilderChill();
|
||||||
|
|
||||||
sb.AppendLine();
|
sb.AppendLine();
|
||||||
sb.AppendLine($"--- Exception details provided by {DllInfo.ApplicationName} ---");
|
sb.AppendLine($"--- Exception details provided by {DllInfo.ApplicationName} ---");
|
||||||
@@ -62,7 +62,7 @@ public static class ExceptionExtensions
|
|||||||
|
|
||||||
private static string FormatExceptionData(IDictionary data)
|
private static string FormatExceptionData(IDictionary data)
|
||||||
{
|
{
|
||||||
var sb = new StringBuilder();
|
var sb = new StringBuilderChill();
|
||||||
|
|
||||||
foreach (DictionaryEntry entry in data)
|
foreach (DictionaryEntry entry in data)
|
||||||
{
|
{
|
||||||
@@ -84,7 +84,7 @@ public static class ExceptionExtensions
|
|||||||
|
|
||||||
private static string FormatInnerException(Exception innerException)
|
private static string FormatInnerException(Exception innerException)
|
||||||
{
|
{
|
||||||
var sb = new StringBuilder();
|
var sb = new StringBuilderChill();
|
||||||
|
|
||||||
sb.AppendLine(innerException.GetType().ToString())
|
sb.AppendLine(innerException.GetType().ToString())
|
||||||
.AppendLine(" Message : " + innerException.Message)
|
.AppendLine(" Message : " + innerException.Message)
|
||||||
|
|||||||
@@ -100,13 +100,13 @@ namespace EonaCat.Logger.Extensions
|
|||||||
|
|
||||||
private static string DumpTree(object currentObject, int? maxDepth, int? maxCollectionItems)
|
private static string DumpTree(object currentObject, int? maxDepth, int? maxCollectionItems)
|
||||||
{
|
{
|
||||||
var stringBuilder = new StringBuilder();
|
var stringBuilder = new StringBuilderChill();
|
||||||
var visitedHashSet = new HashSet<object>(new ReferenceEqualityComparer());
|
var visitedHashSet = new HashSet<object>(new ReferenceEqualityComparer());
|
||||||
DumpTreeInternal(currentObject, stringBuilder, 0, visitedHashSet, maxDepth, maxCollectionItems);
|
DumpTreeInternal(currentObject, stringBuilder, 0, visitedHashSet, maxDepth, maxCollectionItems);
|
||||||
return stringBuilder.ToString();
|
return stringBuilder.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void DumpTreeInternal(object currentObject, StringBuilder stringBuilder, int indent, HashSet<object> visited, int? maxDepth, int? maxCollectionItems)
|
private static void DumpTreeInternal(object currentObject, StringBuilderChill stringBuilder, int indent, HashSet<object> visited, int? maxDepth, int? maxCollectionItems)
|
||||||
{
|
{
|
||||||
string indentation = new string(' ', indent * 2);
|
string indentation = new string(' ', indent * 2);
|
||||||
|
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ public static class LogHelper
|
|||||||
}
|
}
|
||||||
|
|
||||||
category ??= "General";
|
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 timestamp = dateTime.ToString(settings?.TimestampFormat ?? "yyyy-MM-dd HH:mm:ss");
|
||||||
var timeLabel = settings?.UseLocalTime ?? false ? "[LOCAL]" : "[UTC]";
|
var timeLabel = settings?.UseLocalTime ?? false ? "[LOCAL]" : "[UTC]";
|
||||||
|
|
||||||
|
|||||||
1
EonaCat.Logger/version.txt
Normal file
1
EonaCat.Logger/version.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Version: 1.5.0+5d6a91ffb9.20260109
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="EonaCat.MemoryGuard" Version="1.0.9" />
|
<PackageReference Include="EonaCat.MemoryGuard" Version="1.1.1" />
|
||||||
<PackageReference Include="EonaCat.MemoryGuard.Generator" Version="1.1.0" />
|
<PackageReference Include="EonaCat.MemoryGuard.Generator" Version="1.1.0" />
|
||||||
<PackageReference Include="EonaCat.Versioning" Version="1.2.8">
|
<PackageReference Include="EonaCat.Versioning" Version="1.2.8">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
|||||||
Reference in New Issue
Block a user