Skip to content

Releases: kubernetes/klog

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

Better support for Structured Logging

04 Jun 18:21
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

Release to support Kubernetes v1.19

10 Apr 02:52
4cae117
Compare
Choose a tag to compare

Beware of type change: Verbose

New Methods:

  • SetLogger (override logger to set a custom implementation)
  • InfoS (structured logging)
  • ErrorS (structured logging)

Changes are here : v2.0.0-rc.1...v2.0.0