feat: more loggers

This commit is contained in:
Jose Diaz-Gonzalez authored and Michael Hobbs committed 2017-10-02 15:05:13 -07:00
1 parent 096ba83f41
commit 7a4464a8ae
1 file changed
+10
+10
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 // LogWarn is the warning log formatter
func LogWarn(text string) { func LogWarn(text string) {
fmt.Fprintln(os.Stderr, fmt.Sprintf(" ! %s", text)) fmt.Fprintln(os.Stderr, fmt.Sprintf(" ! %s", text))