MCPcopy Create free account
hub / github.com/ZeppelinMC/Zeppelin / WarnlnClean

Function WarnlnClean

util/log/log.go:288–292  ·  view source on GitHub ↗

prints the contents prefixed by a carriage return + blue info text and suffixed with a new line

(v ...any)

Source from the content-addressed store, hash-verified

286
287// prints the contents prefixed by a carriage return + blue info text and suffixed with a new line
288func WarnlnClean(v ...any) {
289 fmt.Printf("\r%s %s %s: ", timeColor(timeString()), warningColor("WARN "), stackColor(stackCallerModule(3)))
290 fmt.Print(v...)
291 fmt.Println("\r")
292}
293
294// prints the contents prefixed by a carriage return + blue info text
295func Warn(v ...any) {

Callers

nothing calls this directly

Calls 2

timeStringFunction · 0.85
stackCallerModuleFunction · 0.85

Tested by

no test coverage detected