MCPcopy Index your code
hub / github.com/coder/coder / SetLogger

Method SetLogger

codersdk/client.go:172–176  ·  view source on GitHub ↗

SetLogger sets the logger for the client. Deprecated: Use WithLogger to set this.

(logger slog.Logger)

Source from the content-addressed store, hash-verified

170// SetLogger sets the logger for the client.
171// Deprecated: Use WithLogger to set this.
172func (c *Client) SetLogger(logger slog.Logger) {
173 c.mu.Lock()
174 defer c.mu.Unlock()
175 c.logger = logger
176}
177
178// LogBodies returns whether requests and response bodies are logged.
179func (c *Client) LogBodies() bool {

Callers 1

TestSSHFunction · 0.95

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by 1

TestSSHFunction · 0.76