github.com/amp-space/amp-sdk-go@v0.7.6/stdlib/testutils/logging.go (about)

     1  package testutils
     2  
     3  import (
     4  	"flag"
     5  	"testing"
     6  
     7  	"github.com/brynbellomy/klog"
     8  )
     9  
    10  func EnableLogging(t *testing.T) {
    11  	t.Helper()
    12  
    13  	flag.Set("logtostderr", "true")
    14  	flag.Set("v", "2")
    15  	t.Cleanup(klog.Flush)
    16  }