2020-02-01 10:35:33 +01:00
|
|
|
# go/logging
|
|
|
|
|
|
|
|
## Unreleased
|
|
|
|
|
2020-06-25 12:29:07 +02:00
|
|
|
## v0.3.0 (2020-05-17)
|
|
|
|
|
|
|
|
### Incompatible Changes
|
|
|
|
|
|
|
|
- Log level names have changed. They were fully capitalized, only their first
|
|
|
|
letter is capitalized now: DEBUG -> Debug, INFO -> Info, etc.
|
|
|
|
- NoopBackend.Level() now returns DefaultLevel instead of Fatal
|
|
|
|
- New loggers are created with level `DefaultLevel` instead of `Debug`
|
|
|
|
- The `Backend` interface now has a `Close()` method, so that backends can free
|
|
|
|
the resources they use
|
|
|
|
|
|
|
|
### Fixes
|
|
|
|
|
|
|
|
- FileBackend now properly closes the file before reopening it (fixes a
|
2020-02-01 10:42:42 +01:00
|
|
|
potential file descriptor leak)
|
2020-06-25 12:29:07 +02:00
|
|
|
- Logger methods did not always acquire locks, causing race conditions
|