logging/CHANGELOG.md

34 lines
1.1 KiB
Markdown
Raw Normal View History

2022-06-03 11:08:02 +02:00
# go/logging Changelog
## Unreleased
2022-06-03 11:08:02 +02:00
## v0.4.1 (2022-06-03)
- Ensure all backends implement the interface `BACKEND`.
- `FileBackend` and `SyslogBackend` always returned errors for `Write`
operations.
## v0.4.0 (2022-05-31)
2022-05-31 16:04:07 +02:00
- Add three new log levels: `Trace`, `Notice` and `Alert` with the following
order: `Trace`, `Debug`, `Info`, `Notice`, `Warning`, `Error`, `Critical`,
`Alert`, `Fatal`.
As Syslog has no equivalent of `Trace`, it is mapped to `Debug`.
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
potential file descriptor leak)
2020-06-25 12:29:07 +02:00
- Logger methods did not always acquire locks, causing race conditions