Releasing v1.11.0
- Git resource bundle loading can now be loaded from a private repo with user and password pair.
- Added an additional string function
MatchString
as built in string function. - Zap logger is now supported in addition to logrus
Note on the Zap Logger :
By default, grule-rule-engine and its subpackages use the logrus logger, which is initialized in the logger subpackage.
The ability to pass a logger (zap or logrus) to subpackages that is initialized in your applications (usually in main.go) has been added.
In each subpackage antlr, ast, builder, engine, the SetLogger (externalLog interface{}) function was added.
It can be passed a logger instance (zap or logrus) to be used by the subpackage.
The SetLogLevel()
function from the logger package has been changed.
Now it is not tied to logrus levels, but uses the levels defined in the logger subpackage of the current library.