This commit is contained in:
Yun
2024-03-13 16:39:42 +08:00
parent baec4bf675
commit c476c2e907
+3 -1
View File
@@ -60,7 +60,9 @@ func SetGinLog() Option {
// 文件路径
func SetDir(dir string) Option {
return func(o *loggerOption) {
o.dir = dir
if dir != "" {
o.dir = dir
}
}
}