优化一些option初始值

This commit is contained in:
Yun
2024-04-15 23:40:55 +08:00
parent c7acaa5af6
commit b58849b5b2
3 changed files with 15 additions and 6 deletions
+2 -1
View File
@@ -18,6 +18,7 @@ func TestLogger(t *testing.T) {
b := bytes.NewBuffer(nil)
l := loggerx.NewLogger(
context.Background(),
loggerx.SetErrorToInfo(),
loggerx.SetExtraDriver(b, Print{}),
)
@@ -38,6 +39,6 @@ type Print struct {
}
func (pp Print) Write(p []byte) (n int, err error) {
fmt.Print("ppppppppppppppp",string(p))
fmt.Print("ppppppppppppppp", string(p))
return
}