-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain_test.go
More file actions
45 lines (43 loc) · 1.45 KB
/
Copy pathmain_test.go
File metadata and controls
45 lines (43 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package logrz
import (
"testing"
"time"
)
func TestLogger(t *testing.T) {
var now = time.Now()
SetLevel(TraceLevel)
T("will output %s", now.Format(time.RFC1123Z))
DisableColor(true)
T("Start! %s", now.Format(time.RFC1123Z))
D("Start! %s", now.Format(time.RFC1123Z))
I("Start! %s", now.Format(time.RFC1123Z))
W("Start! %s", now.Format(time.RFC1123Z))
E("Start! %s", now.Format(time.RFC1123Z))
F("Start! %s", now.Format(time.RFC1123Z))
P("Start! %s", now.Format(time.RFC1123Z))
DisableColor(false)
T("Start! %s", now.Format(time.RFC1123Z))
D("Start! %s", now.Format(time.RFC1123Z))
I("Start! %s", now.Format(time.RFC1123Z))
W("Start! %s", now.Format(time.RFC1123Z))
E("Start! %s", now.Format(time.RFC1123Z))
F("Start! %s", now.Format(time.RFC1123Z))
P("Start! %s", now.Format(time.RFC1123Z))
ForceFullColor(true)
T("Start! %s", now.Format(time.RFC1123Z))
D("Start! %s", now.Format(time.RFC1123Z))
I("Start! %s", now.Format(time.RFC1123Z))
W("Start! %s", now.Format(time.RFC1123Z))
E("Start! %s", now.Format(time.RFC1123Z))
F("Start! %s", now.Format(time.RFC1123Z))
P("Start! %s", now.Format(time.RFC1123Z))
DisableColor(true)
ForceFullColor(true)
T("Start! %s", now.Format(time.RFC1123Z))
D("Start! %s", now.Format(time.RFC1123Z))
I("Start! %s", now.Format(time.RFC1123Z))
W("Start! %s", now.Format(time.RFC1123Z))
E("Start! %s", now.Format(time.RFC1123Z))
F("Start! %s", now.Format(time.RFC1123Z))
P("Start! %s", now.Format(time.RFC1123Z))
}