MCPcopy
hub / github.com/gofiber/fiber / SetLogger

Method SetLogger

client/client.go:783–789  ·  view source on GitHub ↗

SetLogger sets the logger instance used by the client.

(logger log.CommonLogger)

Source from the content-addressed store, hash-verified

781
782// SetLogger sets the logger instance used by the client.
783func (c *Client) SetLogger(logger log.CommonLogger) *Client {
784 c.mu.Lock()
785 defer c.mu.Unlock()
786
787 c.logger = logger
788 return c
789}
790
791// Logger returns the logger instance used by the client.
792func (c *Client) Logger() log.CommonLogger {

Callers 3

Test_Client_Logger_DebugFunction · 0.80

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by 3

Test_Client_Logger_DebugFunction · 0.64