chore(tests): enhance output
- use a better logger separation - use tags not not overload the CI output - removed lot of log.Println/Fatal/Error
This commit is contained in:
12
internal/logger/printer.go
Normal file
12
internal/logger/printer.go
Normal file
@@ -0,0 +1,12 @@
|
||||
//go:build !ci
|
||||
// +build !ci
|
||||
|
||||
package logger
|
||||
|
||||
import "fmt"
|
||||
|
||||
func message(color string, icon Icon, msg ...any) {
|
||||
fmt.Print(icon, " ", color)
|
||||
fmt.Print(msg...)
|
||||
fmt.Println(reset)
|
||||
}
|
Reference in New Issue
Block a user