diff --git a/docs/community/whats-new/akkadotnet-v1.5-upgrade-advisories.md b/docs/community/whats-new/akkadotnet-v1.5-upgrade-advisories.md index 886e5d23e4e..aef07c7a5de 100644 --- a/docs/community/whats-new/akkadotnet-v1.5-upgrade-advisories.md +++ b/docs/community/whats-new/akkadotnet-v1.5-upgrade-advisories.md @@ -208,3 +208,10 @@ In `Directory.Build.props`: ``` + +Note, in order to log more than 6 parameters you need to explicitly create ```object[]``` and pass your arguments into corresponding method. It was done in order to eliminate large numbers of accidental ```object[]``` allocations that were created implicitly through the params keyword AND to eliminate the large amount of boxing that occurred whenever value types (struct) were logged: + +```csharp +var @params = new[]{arg1, arg2, arg3, arg4, arg5, arg6, arg7}; +loggingAdapter.Log(format, @params); +```