log.*StdLogger.Log   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
package log
2
3
import "log"
4
5
// StdLogger use standard log package.
6
type StdLogger struct{}
7
8
// Log logging the SDK's log.
9
func (*StdLogger) Log(v ...interface{}) {
10
	log.Println(v...)
11
}
12
13
// Infof logging information.
14
func (*StdLogger) Infof(service, format string, v ...interface{}) {
15
	log.Printf("[INFO] ["+service+"] "+format, v...)
0 ignored issues
show
introduced by
can't check non-constant format in call to Printf
Loading history...
16
}
17
18
// Errorf logging error information.
19
func (*StdLogger) Errorf(service, format string, v ...interface{}) {
20
	log.Printf("[ERROR] ["+service+"] "+format, v...)
0 ignored issues
show
introduced by
can't check non-constant format in call to Printf
Loading history...
21
}
22