Skip to content

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

@trentm

Description

@trentm

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:

  • bunyan will always have a name field, which is the equivalent of log.logger in ECS.
  • bunyan and pino will typically have pid (ECS equivalent is process.pid)
  • What about other languages and loggers.
  • service.name will typically only be there with automatic injection from APM agents.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions