Skip to content

Releases: no-src/log

v0.1.7

26 Sep 00:40
Compare
Choose a tag to compare

Fixed

  • Fix the data race for the DefaultSampleFunc.

Enhancements

  • Add the custom WaitGroup structure to support wait timeout.
  • Add the CRand structure to support concurrency calls.
  • Add some concurrency tests.

v0.1.6

05 Sep 02:37
Compare
Choose a tag to compare

Fixed

  • Disable console logger's buffer by default.

v0.1.5

05 Sep 00:52
Compare
Choose a tag to compare

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 the baseLogger, the WithFormatter function must be implemented in the specific implementation of Logger.
  • Code refactoring, replace chan bool with chan 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

28 Jun 17:17
Compare
Choose a tag to compare

Enhancements

  • Add support json formatter for the logger.
  • Add support text formatter for the logger.
  • Add the WithFormatter function for the Logger, set the log formatter and return logger self.
  • Move log.Level to level.Level.
  • Rename log_test.go to logger_test.go.
  • Update dependabot.yml, add the github-actions package ecosystem and update the interval from daily to weekly.
  • 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

07 May 15:41
Compare
Choose a tag to compare

Fixed

  • Fix the file logger with empty file prefix will parse to dot prefix.

Enhancements

  • The ErrorIf function returns the original error.
  • Add support random sample logger and update README doc.
  • Code refactoring.

v0.1.2

03 Apr 17:11
Compare
Choose a tag to compare

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.

v0.1.1

25 Feb 07:08
Compare
Choose a tag to compare

Fixed

  • Fix golint warning.

v0.1.0

24 Feb 09:31
Compare
Choose a tag to compare

Enhancements

  • Add LICENSE.
  • Add some badges.
  • Add some tests.
  • Add codecov action.

v0.0.9

10 Jan 16:54
Compare
Choose a tag to compare

Fixed

  • Fix the problem of data race for fileLogger.closed.

v0.0.8

06 Jan 16:45
Compare
Choose a tag to compare

Fixed

  • Fix the problem of data race for fileLogger.