From 9fab72840d120f2c70d9d169825a226e1957ce57 Mon Sep 17 00:00:00 2001 From: Aaron Stannard Date: Mon, 17 Jun 2024 10:25:45 -0500 Subject: [PATCH] added v1.5.25 release notes (#293) --- RELEASE_NOTES.md | 18 ++++++++++++++++++ src/Directory.Build.props | 17 ++++++++++++++--- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index e270902..89a0e63 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,3 +1,21 @@ +#### 1.5.25 June 17 2024 #### + +* [Update Akka.Hosting to 1.5.25](https://github.com/akkadotnet/akka.net/releases/tag/1.5.25) +* [implicitly convert regular `BusLogger` to `SerilogLoggingAdapter` when `ForContext` is called](https://github.com/akkadotnet/Akka.Logger.Serilog/pull/285) + +As of Akka.Logger.Serilog v1.5.25, you can now do the following: + +```csharp +var log = Context.GetLogger() + .ForContext("Address", "No. 4 Privet Drive") + .ForContext("Town", "Little Whinging") + .ForContext("County", "Surrey") + .ForContext("Country", "England"); +log.Info("My boss makes me use {Semantic} logging", "semantic"); +``` + +And it will work without having to explicitly call `Context.GetLogger()` first. + #### 1.5.12.1 August 31 2023 #### * [Update Akka.Hosting to 1.5.12.1](https://github.com/akkadotnet/Akka.Hosting/releases/tag/1.5.12.1) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 80a9a1d..6f060b9 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -3,8 +3,19 @@ akka;actors;actor model;Akka;concurrency;serilog Copyright © 2013-2023 Akka.NET Team Akka.NET Team - [Update Akka.Hosting to 1.5.12.1](https://github.com/akkadotnet/Akka.Hosting/releases/tag/1.5.12.1) - 1.5.12.1 + [Update Akka.Hosting to 1.5.25](https://github.com/akkadotnet/akka.net/releases/tag/1.5.25) +[implicitly convert regular `BusLogger` to `SerilogLoggingAdapter` when `ForContext` is called](https://github.com/akkadotnet/Akka.Logger.Serilog/pull/285) +As of Akka.Logger.Serilog v1.5.25, you can now do the following: +```csharp +var log = Context.GetLogger() +.ForContext("Address", "No. 4 Privet Drive") +.ForContext("Town", "Little Whinging") +.ForContext("County", "Surrey") +.ForContext("Country", "England"); +log.Info("My boss makes me use {Semantic} logging", "semantic"); +``` +And it will work without having to explicitly call `Context.GetLogger<SerilogLoggingAdapter>()` first. + 1.5.25 https://github.com/akkadotnet/Akka.Logger.Serilog Apache-2.0 $(NoWarn);CS1591 @@ -29,4 +40,4 @@ - + \ No newline at end of file