Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/SharedKernel/Logging/Middleware/LogFormatting.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Text.Json;
using System.Text.Encodings.Web;
using System.Text.Json;

namespace SharedKernel.Logging.Middleware;

Expand All @@ -7,7 +8,9 @@ internal static class LogFormatting
private static readonly JsonSerializerOptions JsonOptions = new()
{
WriteIndented = false,
PropertyNamingPolicy = null
PropertyNamingPolicy = null,
// This allows non-ASCII characters (Armenian, Cyrillic, etc.) to pass through without escaping
Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping
};

public static object Omitted(string reason, long? lengthBytes, string? mediaType, int thresholdBytes)
Expand Down
4 changes: 2 additions & 2 deletions src/SharedKernel/SharedKernel.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
<PackageReadmeFile>Readme.md</PackageReadmeFile>
<Authors>Pandatech</Authors>
<Copyright>MIT</Copyright>
<Version>2.1.0</Version>
<Version>2.1.1</Version>
<PackageId>Pandatech.SharedKernel</PackageId>
<Title>Pandatech Shared Kernel Library</Title>
<PackageTags>Pandatech, shared kernel, library, OpenAPI, Swagger, utilities, scalar</PackageTags>
<Description>Pandatech.SharedKernel provides centralized configurations, utilities, and extensions for ASP.NET Core projects. For more information refere to readme.md document.</Description>
<RepositoryUrl>https://github.com/PandaTechAM/be-lib-sharedkernel</RepositoryUrl>
<PackageReleaseNotes>request/response logging enhancement + url encoded support + nuget updates and small perf boosts</PackageReleaseNotes>
<PackageReleaseNotes>request/response logging armenian support</PackageReleaseNotes>


<!-- Never run analyzers as part of compilation (local, CI, dotnet build/test/publish) -->
Expand Down