func InitTestLog() { initLogOnce.Do(func() { consoleLogger, _ := log.NewConsoleLogger(log.Config{Severity: "info"}) log.Init(consoleLogger) InitLibraryLoggers() }) }
// 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() }) }