Skip to content

Switch from glog to slog for structured (as well as leveled) logging #4103

@scr-oath

Description

@scr-oath

slog wins

glog shortcomings

  • glog has issue with write size - it converts newlines to \n for only as big as will fit in its buffer; beyond that, all newlines are as-is and cause multiple, disjoint, possibly interleaved lines to be written.
  • glog's format does not support things like json for log collectors (like google cloud observability suite, that can query them with BigQuery log analytics)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Research

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions