MCPcopy Index your code
hub / github.com/coder/coder / WithScriptLogger

Function WithScriptLogger

agent/agentcontainers/api.go:317–321  ·  view source on GitHub ↗

WithScriptLogger sets the script logger provider for devcontainer operations.

(scriptLogger func(logSourceID uuid.UUID) ScriptLogger)

Source from the content-addressed store, hash-verified

315
316// WithScriptLogger sets the script logger provider for devcontainer operations.
317func WithScriptLogger(scriptLogger func(logSourceID uuid.UUID) ScriptLogger) Option {
318 return func(api *API) {
319 api.scriptLogger = scriptLogger
320 }
321}
322
323// NewAPI returns a new API with the given options applied.
324func NewAPI(logger slog.Logger, options ...Option) *API {

Callers 1

initMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected