stash/pkg/logger/progress_formatter.go

13 lines
241 B
Go
Raw Normal View History

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