go-log/internal_logger_end.go

18 lines
261 B
Go

package flog
import (
"fmt"
"time"
)
func (receiver internalLogger) End(a ...interface{}) {
diff := time.Now().Sub(receiver.begin)
msg := fmt.Sprintf(" δt=%s", diff)
a = append([]interface{}{"END "}, a...)
a = append(a, msg)
receiver.Debug(a...)
}