Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompletedMessage ¶ added in v0.2.1
type Config ¶
type PrettyLogger ¶
type PrettyLogger interface { Stop() AddProgressMessage(format string, args ...interface{}) error AddSuccessMessage(status string, format string, args ...interface{}) error AddFailedMessage(status string, format string, args ...interface{}) error Log(level logrus.Level, format string, args ...interface{}) error }
PrettyLogger overrides the logger using hooks and presents a clean scrolling UI There are also function to show progress or completed messages
func NewDummyLogger ¶ added in v0.3.0
func NewDummyLogger(cfg Config) PrettyLogger
func NewPrettyGlobalLogger ¶
func NewPrettyGlobalLogger(cfg Config) PrettyLogger
func NewPrettyLogger ¶
func NewPrettyLogger(logger *logrus.Logger, cfg Config) PrettyLogger
type ProgressMsg ¶ added in v0.2.0
type ProgressMsg struct { Details string Completed CompletedMessage }
type TimerTickMsg ¶ added in v0.2.0
type TimerTickMsg bool
Click to show internal directories.
Click to hide internal directories.