MCPcopy Create free account
hub / github.com/compozy/agh / WithLogger

Function WithLogger

internal/api/httpapi/server.go:139–143  ·  view source on GitHub ↗

WithLogger injects the server logger.

(logger *slog.Logger)

Source from the content-addressed store, hash-verified

137
138// WithLogger injects the server logger.
139func WithLogger(logger *slog.Logger) Option {
140 return func(server *Server) {
141 server.logger = logger
142 }
143}
144
145// WithStartedAt overrides the daemon start time reported by the API.
146func WithStartedAt(startedAt time.Time) Option {

Calls

no outgoing calls