github.com/v2pro/plz@v0.0.0-20221028024117-e5f9aec5b631/countlog/output/hrf/timestamp.go (about)

     1  package hrf
     2  
     3  import (
     4  	"github.com/v2pro/plz/countlog/spi"
     5  )
     6  
     7  type timestampFormatter struct {
     8  }
     9  
    10  func (formatter *timestampFormatter) Format(space []byte, event *spi.Event) []byte {
    11  	return event.Timestamp.AppendFormat(space, "15:04:05.000")
    12  }