@@ -15,49 +15,49 @@ func (c *QQClient) SetLogger(logger log.Logger) {
15
15
16
16
func (c * QQClient ) info (msg string , args ... any ) {
17
17
if c .logger != nil {
18
- c .logger .Info (msg , args ... )
18
+ c .logger .Infof (msg , args ... )
19
19
}
20
20
}
21
21
22
22
func (c * QQClient ) infoln (msgs ... any ) {
23
23
if c .logger != nil {
24
- c .logger .Info (fmt .Sprint (msgs ... ))
24
+ c .logger .Infof (fmt .Sprint (msgs ... ))
25
25
}
26
26
}
27
27
28
28
func (c * QQClient ) warning (msg string , args ... any ) {
29
29
if c .logger != nil {
30
- c .logger .Warning (log .Getcaller (msg ), args ... )
30
+ c .logger .Warningf (log .Getcaller (msg ), args ... )
31
31
}
32
32
}
33
33
34
34
func (c * QQClient ) warningln (msgs ... any ) {
35
35
if c .logger != nil {
36
- c .logger .Warning (log .Getcaller (fmt .Sprint (msgs ... )))
36
+ c .logger .Warningf (log .Getcaller (fmt .Sprint (msgs ... )))
37
37
}
38
38
}
39
39
40
40
func (c * QQClient ) error (msg string , args ... any ) {
41
41
if c .logger != nil {
42
- c .logger .Error (log .Getcaller (msg ), args ... )
42
+ c .logger .Errorf (log .Getcaller (msg ), args ... )
43
43
}
44
44
}
45
45
46
46
func (c * QQClient ) errorln (msgs ... any ) {
47
47
if c .logger != nil {
48
- c .logger .Error (log .Getcaller (fmt .Sprint (msgs ... )))
48
+ c .logger .Errorf (log .Getcaller (fmt .Sprint (msgs ... )))
49
49
}
50
50
}
51
51
52
52
func (c * QQClient ) debug (msg string , args ... any ) {
53
53
if c .logger != nil {
54
- c .logger .Debug (log .Getcaller (msg ), args ... )
54
+ c .logger .Debugf (log .Getcaller (msg ), args ... )
55
55
}
56
56
}
57
57
58
58
func (c * QQClient ) debugln (msgs ... any ) {
59
59
if c .logger != nil {
60
- c .logger .Debug (log .Getcaller (fmt .Sprint (msgs ... )))
60
+ c .logger .Debugf (log .Getcaller (fmt .Sprint (msgs ... )))
61
61
}
62
62
}
63
63
0 commit comments