Documentation ¶
Index ¶
- func Color(colorString string) func(message string) string
- type Entry
- type LogLevel
- type Logger
- func (l *Logger) AddAlways(contents string)
- func (l *Logger) AddDebug(contents string)
- func (l *Logger) FailWithError(message string, err error)
- func (l *Logger) FailWithErrors(message string, errs []error)
- func (l *Logger) FailWithMessage(message string)
- func (l *Logger) FailWithMessageCompleted(message string)
- func (l *Logger) Print(completed bool)
- func (l *Logger) SetImportChart(imports map[string][]string)
- func (l *Logger) SetImportViolations(violations []rulechecker.Violation)
- func (l *Logger) SetRules(rules []parser.Rule)
- func (l *Logger) Success()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogLevel ¶
type LogLevel int
const ( LogLevelError LogLevel LogLevelWarn LogLevelDebug LogLevelTrace )
type Logger ¶
type Logger struct { Logs strings.Builder Entries []Entry Rules []parser.Rule ImportChart map[string][]string ImportViolations []rulechecker.Violation Verbose bool Completed bool }
func (*Logger) FailWithError ¶
func (*Logger) FailWithErrors ¶
func (*Logger) FailWithMessage ¶
func (*Logger) FailWithMessageCompleted ¶
func (*Logger) SetImportChart ¶
func (*Logger) SetImportViolations ¶
func (l *Logger) SetImportViolations(violations []rulechecker.Violation)
Click to show internal directories.
Click to hide internal directories.