mirror of https://github.com/stashapp/stash.git
12 lines
241 B
Go
12 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
|
||
|
}
|