Skip to content

Releases: lab259/rlog

v2.2.0

03 Feb 11:28
c187a4e

Choose a tag to compare

What is new?

In this version, the Logger.WithPrefix was implemented. This method enables the user to define a prefix that will be placed right before any entry of that particular logger instance.

WithLogger returns a new instance of the logger with the prefix set. If you do WithPrefix twice, you will get a new two "subloggers" each with its own prefix set on top of each other.

Enhacements

v2.1.1

06 Nov 13:05
ae614ca

Choose a tag to compare

♻️ Refactoring

v2.1.0

16 Jul 13:28

Choose a tag to compare

Enhancements

  • #1: Migrate to Go modules

v2.0.1

14 Apr 02:11

Choose a tag to compare

  • Changes the default formatter to defaultFormatter, based on the logrus (check the new look in the image below);

  • Add the Fields reference to the Entry;

  • Improve efficiency by replacing Fields to FieldsArr;

v2

03 Jan 04:17

Choose a tag to compare

v2
  • Put all global definition into a struct that can be initialized with the NewLogger method;
  • Bootstrap, based on the logrus, the sub-logger that uses a real logger implementation to add contextual information in the log lines;
  • Create new WithFields and WithField methods for creating subloggers;
  • Introduces the LogFormatter abstraction based on logrus;
  • Implements the TextFormatter based on logrus;
  • Add more 2 more examples of how to use the new features;