更新日志
This commit is contained in:
16
log/log.go
16
log/log.go
@@ -49,14 +49,18 @@ type LogInfo struct {
|
|||||||
Result interface{} `json:"result,omitempty"` // 结果,返回值,传指针,如果是报错,传err
|
Result interface{} `json:"result,omitempty"` // 结果,返回值,传指针,如果是报错,传err
|
||||||
}
|
}
|
||||||
|
|
||||||
type param struct {
|
type TempGLog struct {
|
||||||
Type string `json:"type"`
|
Time string `json:"Time"`
|
||||||
Value interface{} `json:"value"`
|
TraceId string `json:"TraceId"`
|
||||||
|
Level string `json:"Level"`
|
||||||
|
Content string `json:"Content"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type result struct {
|
type GLog struct {
|
||||||
Type string `json:"type"`
|
Time string `json:"Time"`
|
||||||
Value interface{} `json:"value"`
|
TraceId string `json:"TraceId"`
|
||||||
|
Level string `json:"Level"`
|
||||||
|
Content *LogInfo `json:"Content"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func ZapDebug(logger *zap.Logger, log *LogInfo) {
|
func ZapDebug(logger *zap.Logger, log *LogInfo) {
|
||||||
|
Reference in New Issue
Block a user