-
Hi I am trying to log json data this way : Logger.Debug("{data}", TmpMessage); The field type [data} is defined with type=flattened. The json (TmpMessage ) data looks like this : "{"Message":"This is a test message","System":{"Runtime":{"OS":"Microsoft Windows 10.0.19045 ","Framework":{"Version":"4.8.4515.0","Name":".NETFramework"}},"Process":{"Id":1264,"Name":"ConsoleApp1","Framework":{"Version":"4.8","Name":".NETFramework"}},"Thread":{"Id":1,"Name":"","Culture":"en-GB"}}}" I get the following error Any ideas how to solve this ? Regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Trying this from postman works 👍 { "data": {"Message":"This is a test message","System":{"Runtime":{"OS":"Microsoft Windows 10.0.19045 ","Framework":{"Version":"4.8.4515.0","Name":".NETFramework"}},"Process":{"Id":1264,"Name":"ConsoleApp1","Framework":{"Version":"4.8","Name":".NETFramework"}},"Thread":{"Id":1,"Name":"","Culture":"en-GB"}}}} So, how can I acchive the same from the serilog sink ? Regards |
Beta Was this translation helpful? Give feedback.
-
I found a solution for this, Maybee the best but I works for my cases ...
|
Beta Was this translation helpful? Give feedback.
I found a solution for this, Maybee the best but I works for my cases ...