Hi, I noticed there is no way to provide a custom logger to the casbin enforcer other than redefining a casbin.log.Logger completely, as the casbin DefaultLogger always uses the default Logger from std lib. Would a PR on being able to pass a log.Logger to the DefaultLogger (and use the std lib if no Logger is provided) and use it be accepted ?
sounds ok if your change doesn't affect the current default behavior
Submitted the PR. I added a refactor for Enforcer creation, current function is pretty ugly. Feel free to suggest edits
Join the conversation
Sign up to reply, like and follow topics.
Suggested Topics
Want to read more? Browse other topics in Casbin or view latest topics.
1 / 3
Dec 2024
