Skip to content

Conversation

abg
Copy link
Member

@abg abg commented Jun 20, 2025

slog is faster and simpler and reduces the amount of data logged while improving the clarity of the logs.

This removes an external third party dependency chain and simply uses the Go stdlib log/slog for logging.

The old log format was maintained as much as possible by using slog.ReplaceAttr and maintaing the legacy nested "data.metric" structure of the existing package. However the "source" key has been removed - this always had a static "MetricsEmitter" value that seemed low value and whose removal would not be missed.

slog is faster and simpler and reduces the amount of data logged while
improving the clarity of the logs.

This removes an external third party dependency chain and simply uses
the Go stdlib log/slog for logging.

The old log format was maintained as much as possible by using
slog.ReplaceAttr and maintaing the legacy nested "data.metric" structure
of the existing package. However the "source" key has been removed -
this always had a static "MetricsEmitter" value that seemed low value
and whose removal would not be missed.
@abg abg force-pushed the chore/replace-lager-with-slog branch from aa7ebd2 to 339d1cd Compare August 26, 2025 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant