Skip to content

The only tool you need to know what is happening and how to fix it.

292 B
Raw Blame
package config

import "log"

var LoggingEnabled = true

func Logf(format string, v ...any) {
	if LoggingEnabled {
		log.Printf("[tracewaybackend] "+format, v...)
	}
}

func Logln(v ...any) {
	if LoggingEnabled {
		args := append([]any{"[tracewaybackend]"}, v...)
		log.Println(args...)
	}
}