forked from saleem-mirza/serilog-sinks-azure-analytics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-- set IsAotCompatible= true. It turns on analyzers to check AoT support of code -- use AoT compatible Json serializer
- Loading branch information
1 parent
f61eff2
commit 1f8e7a6
Showing
3 changed files
with
45 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace Serilog.Sinks.AzureLogAnalytics | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
using Serilog.Events; | ||
|
||
[JsonSerializable(typeof(DateTime))] | ||
[JsonSerializable(typeof(IEnumerable<IDictionary<string, object>>))] | ||
[JsonSerializable(typeof(LogEvent))] | ||
internal partial class LogsJsonSerializerContext : JsonSerializerContext | ||
{ | ||
} | ||
} |