@@ -15,49 +15,49 @@ func (c *QQClient) SetLogger(logger log.Logger) {
1515
1616func (c * QQClient ) info (msg string , args ... any ) {
1717 if c .logger != nil {
18- c .logger .Info (msg , args ... )
18+ c .logger .Infof (msg , args ... )
1919 }
2020}
2121
2222func (c * QQClient ) infoln (msgs ... any ) {
2323 if c .logger != nil {
24- c .logger .Info (fmt .Sprint (msgs ... ))
24+ c .logger .Infof (fmt .Sprint (msgs ... ))
2525 }
2626}
2727
2828func (c * QQClient ) warning (msg string , args ... any ) {
2929 if c .logger != nil {
30- c .logger .Warning (log .Getcaller (msg ), args ... )
30+ c .logger .Warningf (log .Getcaller (msg ), args ... )
3131 }
3232}
3333
3434func (c * QQClient ) warningln (msgs ... any ) {
3535 if c .logger != nil {
36- c .logger .Warning (log .Getcaller (fmt .Sprint (msgs ... )))
36+ c .logger .Warningf (log .Getcaller (fmt .Sprint (msgs ... )))
3737 }
3838}
3939
4040func (c * QQClient ) error (msg string , args ... any ) {
4141 if c .logger != nil {
42- c .logger .Error (log .Getcaller (msg ), args ... )
42+ c .logger .Errorf (log .Getcaller (msg ), args ... )
4343 }
4444}
4545
4646func (c * QQClient ) errorln (msgs ... any ) {
4747 if c .logger != nil {
48- c .logger .Error (log .Getcaller (fmt .Sprint (msgs ... )))
48+ c .logger .Errorf (log .Getcaller (fmt .Sprint (msgs ... )))
4949 }
5050}
5151
5252func (c * QQClient ) debug (msg string , args ... any ) {
5353 if c .logger != nil {
54- c .logger .Debug (log .Getcaller (msg ), args ... )
54+ c .logger .Debugf (log .Getcaller (msg ), args ... )
5555 }
5656}
5757
5858func (c * QQClient ) debugln (msgs ... any ) {
5959 if c .logger != nil {
60- c .logger .Debug (log .Getcaller (fmt .Sprint (msgs ... )))
60+ c .logger .Debugf (log .Getcaller (fmt .Sprint (msgs ... )))
6161 }
6262}
6363
0 commit comments