elsa-core/test/unit/Elsa.Logging.Core.UnitTests
Sipke Schoorstra 6764d4acc4
Fix log string template argument processing (#6880)
* Refactor logging system and replace JsonDestructuringConsoleFormatter.

Removed `JsonDestructuringConsoleFormatter` in favor of native JSON console formatting. Introduced `LogArgumentHelper` to process log arguments efficiently and added comprehensive unit tests. Updated `ConsoleLogSinkOptions` to use extensible `JsonFormatterOptions`.

* Refactor `LogArgumentHelper` methods for clarity and remove redundant string handling logic.

* Update src/modules/Elsa.Logging.Core/Helpers/LogArgumentHelper.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/Elsa.Logging.Core/Helpers/LogArgumentHelper.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/Elsa.Logging.Core/Helpers/LogArgumentHelper.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Refactor `LogArgumentHelper` to improve type handling and dictionary conversion

Introduced a temporary list in `ConvertDictionaryToPairs` for better handling of dictionary entries. Updated property-to-pair conversion to cast results as objects, ensuring type consistency.

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-28 21:10:32 +02:00
..
Helpers Improve Logger With Destructuring of ExpandoObject (#6877) 2025-08-28 08:53:15 +02:00
Elsa.Logging.Core.UnitTests.csproj Introduces modular logging framework (#6872) 2025-08-25 09:55:27 +02:00
LogArgumentHelperTests.cs Fix log string template argument processing (#6880) 2025-08-28 21:10:32 +02:00
LogEntryQueueTests.cs Introduces modular logging framework (#6872) 2025-08-25 09:55:27 +02:00
LoggerSinkTests.cs Improve Logger With Destructuring of ExpandoObject (#6877) 2025-08-28 08:53:15 +02:00
LogSinkRouterTests.cs Introduces modular logging framework (#6872) 2025-08-25 09:55:27 +02:00