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

re-work the default title line of rendered logs #24

Open trentm opened 3 years ago

trentm commented 3 years ago

The current title line pattern is roughly:

[@timestamp] LOG.LEVEL (log.logger/service.name on host.hostname): message

I think the parens section is weak. It comes at least partly from my bunyan experience For comparison:

typical bunyan:  [@timestamp] LEVEL (name/pid on host): message
typical pino:    [@timestamp] LEVEL (pid on host): message
typical winston: [@timestamp] LEVEL: message

Notes:

trentm commented 3 years ago

Bunyan will include "src" fields in the title line, I think.