diff --git a/README.md b/README.md index 4a29c0a..6efc2d0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # LayeredCraft.Logging.CompactJsonFormatter -[![Build Status](https://github.com/LayeredCraft/compact-json-formatter/actions/workflows/build.yaml/badge.svg)](https://github.com/LayeredCraft/compact-json-formatter/actions/workflows/build.yaml) +[![Build Status](https://github.com/LayeredCraft/compact-json-formatter/actions/workflows/pr-build.yaml/badge.svg)](https://github.com/LayeredCraft/compact-json-formatter/actions/workflows/pr-build.yaml) [![NuGet](https://img.shields.io/nuget/v/LayeredCraft.Logging.CompactJsonFormatter.svg)](https://www.nuget.org/packages/LayeredCraft.Logging.CompactJsonFormatter/) [![Downloads](https://img.shields.io/nuget/dt/LayeredCraft.Logging.CompactJsonFormatter.svg)](https://www.nuget.org/packages/LayeredCraft.Logging.CompactJsonFormatter/) @@ -116,8 +116,11 @@ compact-json-formatter/ │ └── LayeredCraft.Logging.CompactJsonFormatter.Tests.csproj ├── .github/ │ ├── workflows/ -│ │ ├── build.yaml -│ │ └── pr-build.yaml +│ │ ├── pr-build.yaml +│ │ ├── pr-title-check.yaml +│ │ ├── publish-preview.yaml +│ │ ├── publish-release.yaml +│ │ └── release-drafter.yaml │ └── dependabot.yml ├── Directory.Build.props ├── README.md diff --git a/src/CompactJsonFormatter.cs b/src/CompactJsonFormatter.cs index 9cc4eac..3964d1a 100644 --- a/src/CompactJsonFormatter.cs +++ b/src/CompactJsonFormatter.cs @@ -69,9 +69,9 @@ public void Format(LogEvent logEvent, TextWriter output) /// A value formatter for s on the event. public static void FormatEvent(LogEvent logEvent, TextWriter output, JsonValueFormatter valueFormatter) { - if (logEvent == null) throw new ArgumentNullException(nameof(logEvent)); - if (output == null) throw new ArgumentNullException(nameof(output)); - if (valueFormatter == null) throw new ArgumentNullException(nameof(valueFormatter)); + ArgumentNullException.ThrowIfNull(logEvent); + ArgumentNullException.ThrowIfNull(output); + ArgumentNullException.ThrowIfNull(valueFormatter); output.Write($"{{\"{TimestampProperty}\":\""); output.Write(logEvent.Timestamp.UtcDateTime.ToString("O")); diff --git a/src/LayeredCraft.Logging.CompactJsonFormatter.csproj b/src/LayeredCraft.Logging.CompactJsonFormatter.csproj index 55725c6..90148f4 100644 --- a/src/LayeredCraft.Logging.CompactJsonFormatter.csproj +++ b/src/LayeredCraft.Logging.CompactJsonFormatter.csproj @@ -13,7 +13,7 @@ serilog;logging;json;aws;cloudwatch;structured-logging icon.png README.md - Copyright (c) 2025 LayeredCraft + Copyright (c) 2026 LayeredCraft