package log import ( "os" "testing" ) func TestStdStreamLog(t *testing.T) { h, _ := NewStreamHandler(os.Stdout) s := NewDefault(h) s.Info("hello world") s.Close() Info("hello world") }