forked from weibocom/motan-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinvoker.go
55 lines (46 loc) · 809 Bytes
/
invoker.go
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
46
47
48
49
50
51
52
53
54
55
package vlog
func Infoln(args ...interface{}) {
if log != nil {
log.Infoln(args...)
}
}
func Infof(format string, args ...interface{}) {
if log != nil {
log.Infof(format, args...)
}
}
func Warningln(args ...interface{}) {
if log != nil {
log.Warningln(args...)
}
}
func Warningf(format string, args ...interface{}) {
if log != nil {
log.Warningf(format, args...)
}
}
func Errorln(args ...interface{}) {
if log != nil {
log.Errorln(args...)
}
}
func Errorf(format string, args ...interface{}) {
if log != nil {
log.Errorf(format, args...)
}
}
func Fatalln(args ...interface{}) {
if log != nil {
log.Fatalln(args...)
}
}
func Fatalf(format string, args ...interface{}) {
if log != nil {
log.Fatalf(format, args...)
}
}
func Flush() {
if log != nil {
log.Flush()
}
}