Documentation ¶
Index ¶
- Variables
- func EvalTemplate(id string, template string, data map[string]interface{}) string
- 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) ErrorsSeen() bool
- 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()
- 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 ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) ErrorsSeen ¶
Click to show internal directories.
Click to hide internal directories.