go-admin-team/go-admin-core

fail to compile mycasbin.go as *Logger does not implement "github.com/casbin/casbin/v2/log".Logger (missing Print method)

Closed this issue · 3 comments

mycasbin.go:45:16: cannot use &Logger{} (type *Logger) as type "github.com/casbin/casbin/v2/log".Logger in argument to "github.com/casbin/casbin/v2/log".SetLogger:
        *Logger does not implement "github.com/casbin/casbin/v2/log".Logger (missing Print method)

@jackliusr Your version of Casbin is too old. Since v2.15.0, github.com/casbin/casbin/v2/log.Logger has already removed Print method.

@Abingcbc, thanks. You are right. I used a old version casbin in my bazel dependency files.