If extra keys has property "name", the logger name in the output is overwritten #229
Labels
area/logging
Core logging utility
need-rfc
released
Fix or implementation already in main and released
v2
v2 release
Milestone
Expected Behaviour
Logger name should not be lost when object logged has a property called "name".
This is lost -
"name": "AWS.Lambda.Powertools.Logging.Logger",
and replaced with"name": "Alan Adams",
.If the object being logged has a
TimeStamp
property, the Lambda timestamp will also be lost.This problem relates to another bug.
Current Behaviour
The logger name is lost
Code snippet
Possible Solution
The
Person
should be have be represented in the JSON under aPerson
property.The text was updated successfully, but these errors were encountered: