MCPcopy
hub / github.com/github/github-mcp-server / WithLogger

Function WithLogger

pkg/lockdown/lockdown.go:61–65  ·  view source on GitHub ↗

WithLogger sets the logger used for cache diagnostics.

(logger *slog.Logger)

Source from the content-addressed store, hash-verified

59
60// WithLogger sets the logger used for cache diagnostics.
61func WithLogger(logger *slog.Logger) RepoAccessOption {
62 return func(c *RepoAccessCache) {
63 c.logger = logger
64 }
65}
66
67// WithCacheName overrides the cache table name used for storing entries.
68// Use this to isolate cache entries between tenants or in tests.

Callers 2

RunHTTPServerFunction · 0.92
createGitHubClientsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected