elsa-core/test/unit
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
..
Elsa.Common.Core Feature/cancel dispatched workflows (#5136) 2024-03-27 12:07:55 +01:00
Elsa.Logging.Core.UnitTests Fix log string template argument processing (#6880) 2025-08-28 21:10:32 +02:00
Elsa.MongoDb.UnitTests Add .NET 9.0 target 2024-12-10 21:06:42 +01:00
Elsa.Workflows.Core.UnitTests Refactor ObjectConverter to improve readability and add backward-compatible default value handling in non-strict mode. (#6852) 2025-08-11 08:50:45 +02:00
Elsa.Workflows.Runtime.UnitTests Add .NET 9.0 target 2024-12-10 21:06:42 +01:00