stash/pkg/logger/progress_formatter.go

13 lines
241 B
Go

package logger
import (
"github.com/sirupsen/logrus"
)
type ProgressFormatter struct{}
func (f *ProgressFormatter) Format(entry *logrus.Entry) ([]byte, error) {
msg := []byte("Processing --> " + entry.Message + "\r")
return msg, nil
}