trentm / go-ecslog

`ecslog` CLI to pretty-print and filter log files in ecs-logging format
Apache License 2.0
7 stars 2 forks source link

feat: timestamp diff highlighting #20

Closed trentm closed 3 years ago

trentm commented 3 years ago

This marks up the rendered @timestamp field to allow a color scheme to style the same and different parts independently. The default color scheme underlines the different part. If the timestamps are in RFD 3339 format it attempts to detect if the time offset (the time zone) at the end of the timestamp is the same.

This adds "timestamp", "timestampSame" and "timestampDiff" roles to the coloring.

trentm commented 3 years ago

Starting a "features" section: https://github.com/trentm/go-ecslog/tree/feat-timestamp-highlighting/#features