vlog_test.go 360 Bytes
Newer Older
“李磊”'s avatar
“李磊” committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package l

import "testing"

func TestVLog(t *testing.T) {
	V(0).Debug("v0")
	V(1).Debug("v1")
	SetConfig(Config{VerboseLevel: 2})
	V(2).Debug("v2")
	V(2).Debugf("%s:%s", "fv2", "fv2")
	V(3).Debugf("%s:%s", "fv3", "fv3")
	V(2).Debugj(map[string]int{"verbose": 2})
	V(3).Debugj(map[string]int{"verbose": 3})

	logMsgWithStack("INFO", "hello")
}