mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 18:13:42 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			294 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			294 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package logutil
 | 
						|
 | 
						|
import (
 | 
						|
	"fmt"
 | 
						|
	"strings"
 | 
						|
 | 
						|
	"github.com/sirupsen/logrus"
 | 
						|
)
 | 
						|
 | 
						|
type Formatter struct {
 | 
						|
	logrus.TextFormatter
 | 
						|
}
 | 
						|
 | 
						|
func (f *Formatter) Format(entry *logrus.Entry) ([]byte, error) {
 | 
						|
	return []byte(fmt.Sprintf("%s: %s\n", strings.ToUpper(entry.Level.String()), entry.Message)), nil
 | 
						|
}
 |