MCPcopy Index your code
hub / github.com/cloudfoundry/cli / NewWriterPrinter

Function NewWriterPrinter

cf/trace/writer_printer.go:13–18  ·  view source on GitHub ↗
(writer io.Writer, writesToConsole bool)

Source from the content-addressed store, hash-verified

11}
12
13func NewWriterPrinter(writer io.Writer, writesToConsole bool) Printer {
14 return &LoggerPrinter{
15 logger: log.New(writer, "", 0),
16 writesToConsole: writesToConsole,
17 }
18}
19
20func (p *LoggerPrinter) Print(v ...interface{}) {
21 p.logger.Print(v...)

Callers 4

push_test.goFile · 0.92
ui_test.goFile · 0.92
NewLoggerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected