Skip to content

Commit

Permalink
Marked UtcTimestampEnricher as obsolete since Serilog 4+ has UtcTimes…
Browse files Browse the repository at this point in the history
…tamp built-in.
  • Loading branch information
jonsagara committed Jun 2, 2024
1 parent 304e7ed commit cb7dcfb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<LangVersion>12.0</LangVersion>

<!-- NuGet -->
<Version>2.0.16</Version>
<Version>2.0.17</Version>
<AssemblyVersion>2.0.0</AssemblyVersion>
<FileVersion>2.0.0</FileVersion>
<Authors>Jon Sagara</Authors>
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.202",
"version": "8.0.301",
"rollForward": "latestPatch"
}
}
1 change: 1 addition & 0 deletions src/Sagara.Core.Logging.Serilog/UtcTimestampEnricher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ namespace Sagara.Core.Logging.Serilog;
/// <summary>
/// Serilog enricher that converts the log event's timestamp to UTC.
/// </summary>
[Obsolete("Serilog 4.0.0 and higher has a built-in UtcTimestamp token. Use it. This class will be removed in a future version.")]
public class UtcTimestampEnricher : ILogEventEnricher
{
/// <summary>
Expand Down

0 comments on commit cb7dcfb

Please sign in to comment.