Releases: no-src/log
Releases · no-src/log
v0.1.7
v0.1.6
v0.1.5
Fixed
- Write a log without arguments and don't format it.
Enhancements
- Add support golang 1.19.
- Optimize console logger with
bufio.Writer
. - Remove the
WithFormatter
function in thebaseLogger
, theWithFormatter
function must be implemented in the specific implementation ofLogger
. - Code refactoring, replace
chan bool
withchan struct{}
type if only to receive notification and don't care about the received value. - Add some benchmark tests.
- Update README.md, add more logger examples.
v0.1.4
Enhancements
- Add support
json
formatter for the logger. - Add support
text
formatter for the logger. - Add the
WithFormatter
function for theLogger
, set the log formatter and return logger self. - Move
log.Level
tolevel.Level
. - Rename
log_test.go
tologger_test.go
. - Update dependabot.yml, add the
github-actions
package ecosystem and update the interval fromdaily
toweekly
. - Update github action,codecov/codecov-action 2 => 3.
- Update github action,actions/setup-go 2 => 3.
- Update github action,actions/checkout 2 => 3.
v0.1.3
v0.1.2
Enhancements
- Add support
go1.18
. - Set the test timeout for
10 minutes
. - Add the
log.ErrorIf
function to write the error log if err is not nil. - Add some tests for the
internal/cbool
package. - Add some mock tests for file logger, use the
-tags=no_mock
flag to disable the mock tests.