Skip to content

Releases: edoger/zkits-logger

Version 1.5.1

15 May 17:10
Compare
Choose a tag to compare

This is an enhanced version.

  • Add utility functions to determine high and low priority levels. (IsHighPriorityLevel(Level) and IsLowPriorityLevel(Level))
  • Allows fetching entity buffer. (Entity.Buffer() *bytes.Buffer)
  • Add log FormatOutput support (Allows to customize the format and outputter of each log). See README.md

Version 1.5.0

14 May 16:44
Compare
Choose a tag to compare
  • Upgrade go version to go1.18.
  • Allows for custom call stack prefix filter.
  • Add unimplemented log formatter.
  • Add Entity.HasFields, Entity.HasContext, Entity.HasCaller, Entity.HasStack utility methods.
  • Allows enabling or disabling the log hook.
  • Refactor log file writer. (change backup log file name)

Version 1.4.9

06 May 17:47
Compare
Choose a tag to compare

Note: If there are no special circumstances, this will be the last version of v1.4.x, starting from v1.5.x, we bumped the minimum go version to go1.18.

  • Add GetHighPriorityLevels and GetLowPriorityLevels util function.
  • Add Log.IsLevelEnabled(Level) and Log.Is<LevelName>LevelEnabled() to detect whether the log level is enabled.
  • Add Logger.SetLevelString and Logger.ForceSetLevelString to support setting log level from string.
  • Add Log.WithFieldPairs(key, value, key, value, ...) method to attach tabulated key-value pair fields to log.
  • Some internal performance improvements and stability upgrades.
  • Migrate CI to Github Actions (See #13).

Version 1.4.8

12 Mar 12:56
Compare
Choose a tag to compare
  • Add NewMutexWriterWithLocker for creates mutex writer from the given sync.Locker.
  • Fix caller skip issue.
  • Update big log size to 4KB from 1KB.

Version 1.4.7

15 Aug 13:19
Compare
Choose a tag to compare
  • Allows custom json serialization object pool.
  • Renamed backup log names are accurate to nanoseconds.
  • Some internal stability improvements.

Version 1.4.6

03 Aug 10:14
Compare
Choose a tag to compare
  • Supports console color formatting for log levels.
  • Supports adding fixed message prefix to logs.
  • Support for wrapping Logger or Log as io.Writer.
  • Add Logger.AsStandardLogger: Support for converting Logger to standard library *log.Logger instance.
  • Allows changing the logger level at runtime.
  • Fix duplicate message formatting. (in method Log.Log and method Logger.Log)

Version 1.4.5

15 Apr 11:19
Compare
Choose a tag to compare
  • Add mutex writer wrapper for logger.
  • Add log call stack support.
  • Hide the name when the logger name is empty.
  • Some internal details and performance optimizations.

Version 1.4.4

03 Dec 04:16
Compare
Choose a tag to compare
  • Add Logger.AsLog method: convert the current Logger instance to a Log instance.
  • Support automatic cleaning of old log files. [BREAK]
  • Provides a multi-channel writer.
  • Add built-in console log formatter.

Version 1.4.3

28 Jun 12:02
Compare
Choose a tag to compare
  • Support log summary cloning.
  • Add Logger.SetLevelsOutput() method and Logger.EnableLevelsCaller() method.
  • Optimize some internal details.

Version 1.4.2

03 May 13:38
Compare
Choose a tag to compare
  • Add default quote text formatter.
  • Use short capital level text for the default provided text formatter.
  • Add log file writer.
  • Optimize the performance of json log.