2021-08-09 03:49:23 +00:00
|
|
|
package logger
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
|
|
|
|
|
|
|
"go.uber.org/zap"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Debug ...
|
2023-11-24 02:50:50 +00:00
|
|
|
func Debug(content string, data interface{}) {
|
2021-08-09 03:49:23 +00:00
|
|
|
jsonData, _ := json.Marshal(data)
|
|
|
|
zapLogger.Debug(content, zap.String("data", string(jsonData)))
|
|
|
|
}
|