Closed uablrek closed 5 months ago
IMO it's important that programs in kubernetes-sigs
supports json logging. Another advantage is that objects included in structured logging are logged as objects in json format. Much nicer than a >500 character text with lots of back-slashes.
Structured logging and contextual-logging becomes really useful if
json
formatting is used.After a discussion on slack with @pohly (again) I learned that the examples in https://github.com/kubernetes/component-base/tree/master/logs/example can be used to make programs in kubernetes-sigs conformant with other kubernetes programs regarding logging, in particular the
--logging-format json
cli option should be supported.