github.com/liamawhite/cli-with-i18n@v6.32.1-0.20171122084555-dede0a5c3448+incompatible/cf/terminal/debug_printer.go (about)

     1  package terminal
     2  
     3  import (
     4  	"time"
     5  
     6  	. "github.com/liamawhite/cli-with-i18n/cf/i18n"
     7  	"github.com/liamawhite/cli-with-i18n/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  }