github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/cf/terminal/debug_printer.go (about)

     1  package terminal
     2  
     3  import (
     4  	"time"
     5  
     6  	. "code.cloudfoundry.org/cli/cf/i18n"
     7  	"code.cloudfoundry.org/cli/cf/trace"
     8  )
     9  
    10  type DebugPrinter struct {
    11  	Logger trace.Printer
    12  }
    13  
    14  func (p DebugPrinter) Print(title, dump string) {
    15  	p.Logger.Printf("\n%s [%s]\n%s\n", HeaderColor(T(title)), time.Now().Format(time.RFC3339), trace.Sanitize(dump))
    16  }