MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / WithLogger

Function WithLogger

pkg/api/options.go:17–21  ·  view source on GitHub ↗

WithLogger sets a custom logger for the client.

(logger interfaces.Logger)

Source from the content-addressed store, hash-verified

15
16// WithLogger sets a custom logger for the client.
17func WithLogger(logger interfaces.Logger) ClientOption {
18 return func(opts *ClientOptions) {
19 opts.Logger = logger
20 }
21}
22
23// WithCache sets a custom cache for the client.
24func WithCache(cache interfaces.Cache) ClientOption {

Calls

no outgoing calls