Skip to content

Commit 8de72c3

Browse files
authored
Merge pull request #87 from PandaTechAM/development
armenian support
2 parents 67e87bf + bf9269a commit 8de72c3

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/SharedKernel/Logging/Middleware/LogFormatting.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Text.Json;
1+
using System.Text.Encodings.Web;
2+
using System.Text.Json;
23

34
namespace SharedKernel.Logging.Middleware;
45

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

1316
public static object Omitted(string reason, long? lengthBytes, string? mediaType, int thresholdBytes)

src/SharedKernel/SharedKernel.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
<PackageReadmeFile>Readme.md</PackageReadmeFile>
99
<Authors>Pandatech</Authors>
1010
<Copyright>MIT</Copyright>
11-
<Version>2.1.0</Version>
11+
<Version>2.1.1</Version>
1212
<PackageId>Pandatech.SharedKernel</PackageId>
1313
<Title>Pandatech Shared Kernel Library</Title>
1414
<PackageTags>Pandatech, shared kernel, library, OpenAPI, Swagger, utilities, scalar</PackageTags>
1515
<Description>Pandatech.SharedKernel provides centralized configurations, utilities, and extensions for ASP.NET Core projects. For more information refere to readme.md document.</Description>
1616
<RepositoryUrl>https://github.com/PandaTechAM/be-lib-sharedkernel</RepositoryUrl>
17-
<PackageReleaseNotes>request/response logging enhancement + url encoded support + nuget updates and small perf boosts</PackageReleaseNotes>
17+
<PackageReleaseNotes>request/response logging armenian support</PackageReleaseNotes>
1818

1919

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

0 commit comments

Comments
 (0)