fix: field not accessable

master v0.0.3
Evan Chen 2021-11-05 16:31:11 +08:00
parent 24df729eb6
commit 32b758725e
1 changed files with 2 additions and 2 deletions

4
log.go
View File

@ -38,7 +38,7 @@ type Ldata struct {
// Stack only eval when !PROD and {DEBUG, ERROR}
Stack string
Fields *H
Fields H
Color bool
}
@ -104,7 +104,7 @@ func (l *Logger) output(lev Llevel, depth int, fields H, v ...interface{}) {
}
msg := fmt.Sprint(v...)
data := &Ldata{
Fields: &fields,
Fields: fields,
Message: msg,
Level: lev,
Time: time.Now(),