Documentation ¶
Index ¶
- Variables
- func ConnectFileToVerboseLogOutput(filePath string) (close func(), err error)
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalln(args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func NewSpinner(message string) (start func(), stop func(), s *spinner.Spinner)
- func Printf(format string, args ...interface{})
- func Println(args ...interface{})
- func SendCloudReport(messageLevel MessageLevel, message string, messageState MessageState, ...)
- func SetCommandName(name string)
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- type LoggerWriters
- type MessageLevel
- type MessageState
Constants ¶
This section is empty.
Variables ¶
View Source
var VerboseLogger = (*logrus.Logger)(nil)
View Source
var VerboseLoggerOutputs = (*LoggerWriters)(nil)
Functions ¶
func NewSpinner ¶ added in v0.0.22
func SendCloudReport ¶
func SendCloudReport(messageLevel MessageLevel, message string, messageState MessageState, payload *map[string]interface{})
func SetCommandName ¶
func SetCommandName(name string)
Types ¶
type LoggerWriters ¶
type LoggerWriters struct {
// contains filtered or unexported fields
}
func NewLoggerOutputs ¶
func NewLoggerOutputs(logger *logrus.Logger) *LoggerWriters
func (*LoggerWriters) Add ¶
func (lw *LoggerWriters) Add(w io.Writer)
func (*LoggerWriters) Remove ¶
func (lw *LoggerWriters) Remove(w io.Writer)
func (*LoggerWriters) Set ¶
func (lw *LoggerWriters) Set()
type MessageLevel ¶
type MessageLevel string
const ( InfoLog MessageLevel = "info" WarningLog MessageLevel = "warning" ErrorLog MessageLevel = "error" )
type MessageState ¶
type MessageState string
const ( Starting MessageState = "Starting" Running MessageState = "Running" Failed MessageState = "Failed" Success MessageState = "Success" )
Click to show internal directories.
Click to hide internal directories.