MCPcopy Create free account
hub / github.com/github/gh-aw / NewSlogLoggerWithHandler

Function NewSlogLoggerWithHandler

pkg/logger/slog_adapter.go:94–97  ·  view source on GitHub ↗

NewSlogLoggerWithHandler creates a new slog.Logger using an existing Logger instance

(logger *Logger)

Source from the content-addressed store, hash-verified

92
93// NewSlogLoggerWithHandler creates a new slog.Logger using an existing Logger instance
94func NewSlogLoggerWithHandler(logger *Logger) *slog.Logger {
95 handler := NewSlogHandler(logger)
96 return slog.New(handler)
97}

Callers 6

connectStdioMCPServerFunction · 0.92
connectHTTPMCPServerFunction · 0.92
createMCPServerFunction · 0.92
runHTTPServerFunction · 0.92

Calls 1

NewSlogHandlerFunction · 0.85