Beispiel #1
0
func InitTestLog() {
	initLogOnce.Do(func() {
		consoleLogger, _ := log.NewConsoleLogger(log.Config{Severity: "info"})
		log.Init(consoleLogger)
		InitLibraryLoggers()
	})
}
Beispiel #2
0
// InitTest initializes both internal and 3rd party loggers to generate console
// output. As the name suggests it should be used in unit tests only.
func InitTest() {
	initTestOnce.Do(func() {
		consoleLogger, _ := log.NewConsoleLogger(log.Config{Severity: "info"})
		log.Init(consoleLogger)
		Init3rdParty()
	})
}