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

Function WithLogger

pty/pty.go:108–112  ·  view source on GitHub ↗

WithLogger sets a logger for logging errors.

(logger *log.Logger)

Source from the content-addressed store, hash-verified

106
107// WithLogger sets a logger for logging errors.
108func WithLogger(logger *log.Logger) Option {
109 return func(opts *ptyOptions) {
110 opts.logger = logger
111 }
112}
113
114// WithGPGTTY sets the GPG_TTY environment variable to the PTY name. This only
115// applies to non-Windows platforms.

Callers 1

startPTYSessionMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected