MCPcopy Create free account
hub / github.com/facebook/time / WithLogger

Function WithLogger

ntrip/client.go:80–84  ·  view source on GitHub ↗

WithLogger sets the logger for the client.

(logger *slog.Logger)

Source from the content-addressed store, hash-verified

78
79// WithLogger sets the logger for the client.
80func WithLogger(logger *slog.Logger) Option {
81 return func(c *Client) {
82 c.logger = logger
83 }
84}
85
86// WithDump tees every byte sent to the caster into w, for offline inspection
87// of the exact RTCM stream the caster receives.

Callers 2

connectCasterFunction · 0.92
TestWithLoggerFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestWithLoggerFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…