nodejs-logging
nodejs-logging copied to clipboard
Feat: Marshall protoPayload into JSON format
Inspired by #785 and #984:
Add protoPayload
detection to fromApiResponse to automarshall proto into json format. Return an error or the original proto if marshalling fails. Protobufjs library can be used.
Such that when users call getEntries
on audit logs that have protoPayloads, instead of text/JSON payloads, they get some structured payload information back. Some fields, nested fields, might still fail to marshal.
Similar to Go implementation.
This would be a breaking change.