MCPcopy Create free account
hub / github.com/devspace-sh/devspace / NewStdoutLogger

Function NewStdoutLogger

pkg/util/log/stream_logger.go:61–72  ·  view source on GitHub ↗
(stdin io.Reader, stdout, stderr io.Writer, level logrus.Level)

Source from the content-addressed store, hash-verified

59)
60
61func NewStdoutLogger(stdin io.Reader, stdout, stderr io.Writer, level logrus.Level) Logger {
62 isTerminal, _ := terminal.SetupTTY(stdin, stdout)
63 return &StreamLogger{
64 m: &sync.Mutex{},
65 level: level,
66 format: TextFormat,
67 isTerminal: isTerminal,
68 stream: stdout,
69 errorStream: stderr,
70 survey: survey.NewSurvey(),
71 }
72}
73
74func NewStreamLogger(stdout, stderr io.Writer, level logrus.Level) Logger {
75 return &StreamLogger{

Callers 1

log.goFile · 0.85

Calls 2

SetupTTYFunction · 0.92
NewSurveyFunction · 0.92

Tested by

no test coverage detected