feat: support adapter in app.conf logConfig (#3784)

This commit is contained in:
DacongDA
2025-05-14 08:27:11 +08:00
committed by GitHub
parent f8f864c5b9
commit b15b3b9335
3 changed files with 20 additions and 3 deletions

View File

@ -115,7 +115,7 @@ func TestGetConfigLogs(t *testing.T) {
description string
expected string
}{
{"Default log config", `{"filename": "logs/casdoor.log", "maxdays":99999, "perm":"0770"}`},
{"Default log config", `{"adapter":"file", "filename": "logs/casdoor.log", "maxdays":99999, "perm":"0770"}`},
}
err := beego.LoadAppConfig("ini", "app.conf")