MCPcopy Create free account
hub / github.com/ddev/ddev / init

Method init

pkg/output/text_formatter.go:67–71  ·  view source on GitHub ↗
(entry *log.Entry)

Source from the content-addressed store, hash-verified

65}
66
67func (f *TextFormatter) init(entry *log.Entry) {
68 if entry.Logger != nil {
69 f.isTerminal = f.checkIfTerminal(entry.Logger.Out)
70 }
71}
72
73func (f *TextFormatter) checkIfTerminal(w io.Writer) bool {
74 switch v := w.(type) {

Callers 1

FormatMethod · 0.95

Calls 1

checkIfTerminalMethod · 0.95

Tested by

no test coverage detected