Skip to content

Releases: kubernetes/klog

One more change to support 1.22 release

15 Jul 10:18
79f9f6b
Compare
Choose a tag to compare

Changes are here : v2.9.0...v2.10.0

new function added:

func KObjs(arg interface{}) []ObjectRef

Prepare release for Kubernetes v1.22

26 May 10:56
02ca14b
Compare
Choose a tag to compare

Changes are here : v2.8.0...v2.9.0

6a9ef3f fix typo
59f7cb5 fix byte array display in InfoS and ErrorS
cf22f1e Call logr with call depth
e95c7e3 make SetLogger thread-safe
2728fe1 check usage of format specifier in structured log func
a18bc97 Fix by pr suggestions
4e4135c Add check for InfoS & ErrorS parameters

Bug fixes for structured logging for Kubernetes v1.21

12 Mar 18:54
407242c
Compare
Choose a tag to compare

Miscellaneous fixes for structured logging for Kubernetes v1.21

12 Mar 01:33
0f69eb5
Compare
Choose a tag to compare

Adding a linter for Kubernetes v1.21

03 Mar 11:07
14dec33
Compare
Choose a tag to compare

Prepare release for Kubernetes v1.21

27 Jan 18:19
2427a79
Compare
Choose a tag to compare

Changes are here : v2.4.0...v2.5.0

klog.go has new API:

+func ErrorSDepth(depth int, err error, msg string, keysAndValues ...interface{}) {
+func InfoSDepth(depth int, msg string, keysAndValues ...interface{}) {

klogr/klogr.go has new API:

func (l klogger) WithCallDepth(depth int) logr.Logger {
func NewWithOptions(options ...Option) logr.Logger {
func WithFormat(format Format) Option {

Prepare release for Kubernetes v1.20

29 Oct 22:28
52c62e3
Compare
Choose a tag to compare

Fix Typo-ed Method Error -> ErrorS

02 Jul 14:26
b5c3182
Compare
Choose a tag to compare

Dependency update and bugfix for InfoS

16 Jun 10:45
d738e55
Compare
Choose a tag to compare
  • 2e691eb Fix missing fields in verbose InfoS
  • 966c986 feat use go-logr v0.2.0

Changes are here : v2.1.0...v2.2.0

Better support for Structured Logging

04 Jun 21:04
825bd2f
Compare
Choose a tag to compare

We are now enforcing API compatibility, added Windows based tests, and have tweaked the structured logging methods after some real world experience updating kubernetes main repo.

  • bbd9ca1 Add tests for error in InfoS
  • 1ccc0e1 fix imported bug time encode format form kvlistFormat
  • dd4d1a6 fix typo in README.md
  • 49123d4 ErrorS(nil, ...) should call loggr.Error(nil, ...)
  • 5b199cd Fix documentation for V(level)
  • d1eb30f Add apidiff script to check go signature changes
  • dc505bf Switch slack channel to #klog
  • a47ebb9 Add example for co-existence of klog v1 and v2
  • 134f148 logName(): lazily lookup userName instead of on init()
  • db06a1b fix serialization of special html chars
  • 5727d2a Fix Windows integration tests
  • edbc1d3 test(*): TestRollover failed randomly on Windows
  • 6f99060 Add LogToStderr, a programatic way to log exclusively to stderr or not