feat: more loggers

This commit is contained in:
Jose Diaz-Gonzalez
2017-09-03 20:05:15 -04:00
committed by Michael Hobbs
parent 096ba83f41
commit 7a4464a8ae

View File

@@ -36,6 +36,16 @@ func LogInfo2Quiet(text string) {
}
}
func LogVerbose(text string) {
fmt.Fprintln(os.Stdout, fmt.Sprintf(" %s", text))
}
func LogVerboseQuiet(text string) {
if os.Getenv("DOKKU_QUIET_OUTPUT") != "" {
LogVerbose(text)
}
}
// LogWarn is the warning log formatter
func LogWarn(text string) {
fmt.Fprintln(os.Stderr, fmt.Sprintf(" ! %s", text))