This PR changes the log event structure to something that is more common/standard based on what I saw in the loggers I studied.
It makes it both easier to integrate and consume log events.
I've also got rid of the cleverness around not duplicating log event data when they already exist in other metadata of the log protocol (syslog, cloudwatch, ...), I think it's better to have the exact same message exist on all platforms.
Since I didn't need to set the timestamp to a zero-value anymore I also got rid of the Timestamp type 🎉
@segmentio/infra
This PR changes the log event structure to something that is more common/standard based on what I saw in the loggers I studied. It makes it both easier to integrate and consume log events.
I've also got rid of the cleverness around not duplicating log event data when they already exist in other metadata of the log protocol (syslog, cloudwatch, ...), I think it's better to have the exact same message exist on all platforms. Since I didn't need to set the timestamp to a zero-value anymore I also got rid of the
Timestamp
type 🎉