Skip to content

Releases: no-src/log

v0.3.2

17 May 02:52
70ec50c
Compare
Choose a tag to compare

Enhancements

  • Add the function CreateLoggerFromConfig to create a logger from the config file.
  • Add the level.ParseLevel function.
  • Add go1.22 support.
  • Bump codecov/codecov-action from 3 to 4.
  • Bump github/codeql-action from 2 to 3.
  • Bump actions/setup-go from 4 to 5.
  • Bump actions/checkout from 3 to 4.

v0.3.1

06 Sep 03:08
3bf6cc5
Compare
Choose a tag to compare

Enhancements

  • Remove the CBool structure.
  • Add the ErrorIf function for Logger interface.

v0.3.0

21 Aug 09:47
c2c9937
Compare
Choose a tag to compare

Enhancements

  • Remove go1.17 and go1.18 support.
  • Add go1.21 support.
  • Update the implementation of the CBool.

v0.2.3

27 Jun 18:45
ef67c62
Compare
Choose a tag to compare

Fixed

  • Fix the data race in the Option implementation.

v0.2.2

27 Jun 17:39
8a9fae7
Compare
Choose a tag to compare

Fixed

  • Fix the data race in the formatter and content packages.

v0.2.1

27 Jun 16:21
c702c1c
Compare
Choose a tag to compare

Enhancements

  • Implement the WithFormatter and WithTimeFormat functions in the multiLogger and sampleLogger.
  • Add the InitDefaultLogTimeFormat function to set the global default log time format.

v0.2.0

27 Jun 05:22
7e3e279
Compare
Choose a tag to compare

Enhancements

  • Add the WithTimeFormat function for Logger interface to set the time format and return logger self.
  • Auto flush logs to file per 3 seconds by default.
  • Add the awesome badge.
  • Bump actions/setup-go from 3 to 4.
  • Create CODE_OF_CONDUCT.md.

v0.1.10

20 Feb 07:18
dbd14a5
Compare
Choose a tag to compare

Fixed

  • Fix the output is incorrect when writing an error log with arguments that contain the format character.
  • Update the build badge(#6).

Enhancements

  • Add support go1.20.
  • Add support for macOS.
  • Remove the mock tests and add some file log tests.

v0.1.9

02 Dec 03:51
971ada5
Compare
Choose a tag to compare

Fixed

  • Fix the data race of default logger.

Enhancements

  • Add the DefaultSampleLogger function.

v0.1.8

19 Oct 16:24
Compare
Choose a tag to compare

Enhancements

  • Add the NewFileLoggerWithOption function.
  • Add the option.NewFileLoggerOption function.
  • Support split log file by date.
  • Add the CodeQL github workflow.
  • Remove the chat badge.