From 73de0ef79eb4338aecd83222640bc33132d56a9b Mon Sep 17 00:00:00 2001 From: Nick Cipollina Date: Fri, 17 Apr 2026 22:33:32 -0400 Subject: [PATCH 1/2] fix(formatter): use ArgumentNullException.ThrowIfNull for null checks Co-Authored-By: Claude Sonnet 4.6 --- src/CompactJsonFormatter.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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")); From ab90b8a3d497125568d839ea7993dd81da428e0b Mon Sep 17 00:00:00 2001 From: Nick Cipollina Date: Fri, 17 Apr 2026 22:53:41 -0400 Subject: [PATCH 2/2] docs: update README badge and workflow list; fix copyright year Co-Authored-By: Claude Sonnet 4.6 --- README.md | 9 ++++++--- src/LayeredCraft.Logging.CompactJsonFormatter.csproj | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) 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/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