MCPcopy Create free account
hub / github.com/coder/coder / WithLogger

Function WithLogger

provisioner/terraform/tfparse/tfparse.go:52–56  ·  view source on GitHub ↗

WithLogger sets the logger to be used by Parser

(logger slog.Logger)

Source from the content-addressed store, hash-verified

50
51// WithLogger sets the logger to be used by Parser
52func WithLogger(logger slog.Logger) Option {
53 return func(p *Parser) {
54 p.logger = logger
55 }
56}
57
58// New returns a new instance of Parser, as well as any diagnostics
59// encountered while parsing the module.

Callers 4

ParseMethod · 0.92

Calls

no outgoing calls