Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Log = &logrus.Logger{ Out: os.Stdout, Formatter: new(logrus.TextFormatter), Hooks: make(logrus.LevelHooks), Level: logrus.InfoLevel, }
Info:
Log.Info("Info")
Debug:
Log.Debug("Debug")
Error:
Log.Error("Error")
Warn:
Log.Warn("Warn")
Functions ¶
func CheckErr ¶
This function checks for an error.
If the error isn't nil it return true and print error otherwise false.
err := errors.New("Test Error") if common.CheckErr(err, "example error") { return } fmt.Println("No error was found!")
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.