SetLogger set the customized logger for client, will disable log if set to nil.
(log Logger)
| 576 | |
| 577 | // SetLogger set the customized logger for client, will disable log if set to nil. |
| 578 | func (c *Client) SetLogger(log Logger) *Client { |
| 579 | if log == nil { |
| 580 | c.log = &disableLogger{} |
| 581 | return c |
| 582 | } |
| 583 | c.log = log |
| 584 | return c |
| 585 | } |
| 586 | |
| 587 | // SetTimeout set timeout for requests fired from the client. |
| 588 | func (c *Client) SetTimeout(d time.Duration) *Client { |
no outgoing calls