Format of JSON not as expected #230
Labels
area/logging
Core logging utility
not-a-bug
New and existing bug reports incorrectly submitted as bug
Milestone
Expected Behaviour
For an object
Person
, that has anAddress
I expect to see it logged like this -When logging using
Logger.LogInformation<Person>(person, "{Name} and is {Age} years old", new object[]{person.Name, person.Age});
I expect the output to look like -Current Behaviour
Instead the output is -
Person is lost.
Code snippet
Possible Solution
I would expect the log out to look the same as it does when using like this -
The output from this is -
The Person is clearly shown.
Steps to Reproduce
Deploy the code provided and invoke.
AWS Lambda Powertools for .NET version
latest
AWS Lambda function runtime
dotnet6
Debugging logs
No response
The text was updated successfully, but these errors were encountered: