improve: log fields

This commit is contained in:
Mmx
2024-09-25 21:48:07 +08:00
parent d9d09bfc33
commit a3e28d3696
15 changed files with 103 additions and 66 deletions

View File

@@ -20,7 +20,7 @@ type Api struct {
NoDirect *http.Client
CustomHeader map[string]interface{}
Logger *log.Logger
Logger log.FieldLogger
}
type ApiConfig struct {
@@ -28,7 +28,7 @@ type ApiConfig struct {
Domain string
Client *http.Client
CustomHeader map[string]interface{}
Logger *log.Logger
Logger log.FieldLogger
}
func (a *Api) Init(conf *ApiConfig) {