Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
 - func EvalTemplate(id string, template string, data map[string]interface{}) string
 - func IsTerminal(w io.Writer) bool
 - func LimitLines(msg string, n int) string
 - type Entry
 - type Hash
 - type Level
 - type Logger
 - func (l *Logger) Debug(id string, text string)
 - func (l *Logger) Error(id string, text string)
 - func (l *Logger) Info(id string, text string)
 - func (l *Logger) LogEntry(entry Entry)
 - func (l *Logger) Notice(id string, text string)
 - func (l *Logger) Summary(warningsSeen int, errorsSeen int)
 - func (l *Logger) Warn(id string, text string)
 
- type LoggerOptions
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var ( ErrorLevel = Level{4, "error", "ERROR: ", ct.Red, true} // Something is definitely wrong WarnLevel = Level{3, "warn", "WARN: ", ct.Yellow, true} // Likely to be an issue but maybe not NoticeLevel = Level{2, "note", "[Note] ", ct.White, false} // Introductory / summary InfoLevel = Level{1, "info", "Info: ", ct.None, false} // Just informational DebugLevel = Level{0, "debug", "debug: ", ct.None, false} // Extra verbose )
Functions ¶
func EvalTemplate ¶
func IsTerminal ¶
cribbed a la "github.com/openshift/origin/pkg/cmd/util"
Types ¶
      
      Source Files
      ¶
    
- log.go
 - text.go
 
 Click to show internal directories. 
   Click to hide internal directories.