Versions in this module Expand all Collapse all v2 v2.77.4 Nov 2, 2024 v2.77.3 Nov 2, 2024 Changes in this version + func LogEnforce(matcher string, request []interface{}, result bool, explains [][]string) + func LogError(err error, msg ...string) + func LogModel(model [][]string) + func LogPolicy(policy map[string][][]string) + func LogRole(roles []string) + func SetLogger(l Logger) + type DefaultLogger struct + func (l *DefaultLogger) EnableLog(enable bool) + func (l *DefaultLogger) IsEnabled() bool + func (l *DefaultLogger) LogEnforce(matcher string, request []interface{}, result bool, explains [][]string) + func (l *DefaultLogger) LogError(err error, msg ...string) + func (l *DefaultLogger) LogModel(model [][]string) + func (l *DefaultLogger) LogPolicy(policy map[string][][]string) + func (l *DefaultLogger) LogRole(roles []string) + type Logger interface + EnableLog func(bool) + IsEnabled func() bool + LogEnforce func(matcher string, request []interface{}, result bool, explains [][]string) + LogError func(err error, msg ...string) + LogModel func(model [][]string) + LogPolicy func(policy map[string][][]string) + LogRole func(roles []string) + func GetLogger() Logger