Releases: randlabs/go-logger
Release v2.0.2
Release v2.0.1
- Minor improvements.
- Added mock syslog server for testing.
- Updated dependencies.
Release v2.0.0
- Some refactoring.
Release v1.2.3
- Applied static-check tool.
Release v1.2.2
- Added documentation.
Release v1.2.1
- Syslog logic moved to a goroutine in order to avoid undesired delays on the routines sending messages.
- Updated dependencies.
- Code beautify.
Release v1.2.0
IMPORTANT NOTE: This release contains BREAKING changes.
The new approach for the logger library is to create a logger object instance instead of using global functions.
Use Create
function and pass the desired Options
to create the instance. Remember to Destroy
the instance once finished.
The Error
, Warning
, Info
and Debug
methods, now accept a single parameter: An object or a string. If an object is provided, the output will be in JSON format so ensure the proper tags are declared in the struct. If the argument is a string, the output will be similar to previous versions with the timestamp and level prefixed.
Take into account this methods will not accept a format and a variable number of arguments. The caller must do proper formatting by calling, for e.g., fmt.Sprintf
.
Release v1.1.3
- Updated GooKit Color dependecy
Release v1.1.2
- Renamed modules to match new repo
Release v1.1.1
- Added missing imports in Linux & Plan9 versions