Documentation
¶
Index ¶
- Variables
- func Bold(s string) string
- func Box(left, right string)
- func Cyan(s string) string
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Gray(s string) string
- func Green(s string) string
- func Info(args ...interface{})
- func InfoPad(s string)
- func Infof(format string, args ...interface{})
- func Printf(format string, args ...interface{})
- func Println(args ...interface{})
- func Red(s string) string
- func Separate(s string)
- func SetColors(colors interface{})
- func SetLevel(level Level)
- func SetName(name string)
- func SetOutput(out io.Writer)
- func StartSpinner()
- func StopSpinner()
- func UnsetName(name string)
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- func Yellow(s string) string
- type Level
- type Logger
- func (l *Logger) Debug(args ...interface{})
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Error(args ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Info(args ...interface{})
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) IsLevelEnabled(level Level) bool
- func (l *Logger) Log(level Level, args ...interface{})
- func (l *Logger) Logf(level Level, format string, args ...interface{})
- func (l *Logger) Printf(format string, args ...interface{})
- func (l *Logger) Println(args ...interface{})
- func (l *Logger) SetLevel(level Level)
- func (l *Logger) SetName(name string)
- func (l *Logger) SetOutput(out io.Writer)
- func (l *Logger) UnsetName(name string)
- func (l *Logger) Warn(args ...interface{})
- func (l *Logger) Warnf(format string, args ...interface{})
- type SkipSettings
- func (s *SkipSettings) ApplySettings(tags string, skipOutput interface{})
- func (s *SkipSettings) SkipAll(val bool)
- func (s SkipSettings) SkipEmptySummary() bool
- func (s SkipSettings) SkipExecution() bool
- func (s SkipSettings) SkipExecutionInfo() bool
- func (s SkipSettings) SkipExecutionOutput() bool
- func (s SkipSettings) SkipFailure() bool
- func (s SkipSettings) SkipMeta() bool
- func (s SkipSettings) SkipSkips() bool
- func (s SkipSettings) SkipSuccess() bool
- func (s SkipSettings) SkipSummary() bool
- type StyleLogger
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ColorRed lipgloss.TerminalColor = lipgloss.CompleteColor{TrueColor: "#ff6347", ANSI256: "196", ANSI: "9"} ColorGreen lipgloss.TerminalColor = lipgloss.CompleteColor{TrueColor: "#32cd32", ANSI256: "148", ANSI: "2"} ColorYellow lipgloss.TerminalColor = lipgloss.CompleteColor{TrueColor: "#fada5e", ANSI256: "191", ANSI: "11"} ColorCyan lipgloss.TerminalColor = lipgloss.CompleteColor{TrueColor: "#70C0BA", ANSI256: "37", ANSI: "14"} GolorGray lipgloss.TerminalColor = lipgloss.CompleteColor{TrueColor: "#808080", ANSI256: "244", ANSI: "7"} )
Functions ¶
func StartSpinner ¶
func StartSpinner()
func StopSpinner ¶
func StopSpinner()
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) IsLevelEnabled ¶
type SkipSettings ¶ added in v1.1.0
type SkipSettings int16
func (*SkipSettings) ApplySettings ¶ added in v1.5.6
func (s *SkipSettings) ApplySettings(tags string, skipOutput interface{})
func (*SkipSettings) SkipAll ¶ added in v1.5.6
func (s *SkipSettings) SkipAll(val bool)
func (SkipSettings) SkipEmptySummary ¶ added in v1.4.8
func (s SkipSettings) SkipEmptySummary() bool
func (SkipSettings) SkipExecution ¶ added in v1.1.0
func (s SkipSettings) SkipExecution() bool
func (SkipSettings) SkipExecutionInfo ¶ added in v1.4.1
func (s SkipSettings) SkipExecutionInfo() bool
func (SkipSettings) SkipExecutionOutput ¶ added in v1.3.11
func (s SkipSettings) SkipExecutionOutput() bool
func (SkipSettings) SkipFailure ¶ added in v1.1.0
func (s SkipSettings) SkipFailure() bool
func (SkipSettings) SkipMeta ¶ added in v1.1.0
func (s SkipSettings) SkipMeta() bool
func (SkipSettings) SkipSkips ¶ added in v1.3.10
func (s SkipSettings) SkipSkips() bool
func (SkipSettings) SkipSuccess ¶ added in v1.1.0
func (s SkipSettings) SkipSuccess() bool
func (SkipSettings) SkipSummary ¶ added in v1.1.0
func (s SkipSettings) SkipSummary() bool
type StyleLogger ¶ added in v1.5.0
type StyleLogger struct {
// contains filtered or unexported fields
}
func Styled ¶ added in v1.5.0
func Styled() StyleLogger
func (StyleLogger) Info ¶ added in v1.5.0
func (s StyleLogger) Info(str string)
func (StyleLogger) WithLeftBorder ¶ added in v1.5.0
func (s StyleLogger) WithLeftBorder(border lipgloss.Border, color lipgloss.TerminalColor) StyleLogger
func (StyleLogger) WithPadding ¶ added in v1.5.0
func (s StyleLogger) WithPadding(m int) StyleLogger
Click to show internal directories.
Click to hide internal directories.