Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Migrate logging to structured logging #95

Open
paullaffitte opened this issue May 20, 2021 · 0 comments
Open

Migrate logging to structured logging #95

paullaffitte opened this issue May 20, 2021 · 0 comments

Comments

@paullaffitte
Copy link
Collaborator

With structured logging, log messages are no longer formatted, leaving argument marshalling up to the logging client implementation. This allows messages to be a static description of event.

All string formatting (%d, %v, %w, %s) should be removed and log message string simplified. Describing arguments in log messages is no longer needed and should be removed leaving only a description of what happened.

https://github.com/kubernetes/community/blob/master/contributors/devel/sig-instrumentation/migration-to-structured-logging.md
https://kubernetes.io/blog/2020/09/04/kubernetes-1-19-introducing-structured-logs/

@paullaffitte paullaffitte self-assigned this May 20, 2021
@paullaffitte paullaffitte added this to the 4.x milestone May 20, 2021
@paullaffitte paullaffitte removed this from the 4.x milestone Jun 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant