log
log copied to clipboard
preserve Entry's internal vars when calling Entry.WithFields
This way, it's possible to do things like this:
trace := log.Trace("test")
ret, err := handler()
if err != nil {
trace = trace.WithFields(...custom fields just in case of error...)
}
trace.Stop(&err)