Releases: lab259/rlog
Releases · lab259/rlog
v2.2.0
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
- c187a4e Add prefixes to Logger (#3) (@jamillosantos)
v2.1.1
♻️ Refactoring
- ae614ca Publish the
defaultLoggerinstance (#2) (@jamillosantos)
v2.1.0
v2.0.1
v2
- Put all global definition into a struct that can be initialized with the
NewLoggermethod; - Bootstrap, based on the logrus, the sub-logger that uses a real logger implementation to add contextual information in the log lines;
- Create new
WithFieldsandWithFieldmethods 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;
