From 7a4464a8aee97d6ad7b2f36d6e3816c96600d98c Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 3 Sep 2017 20:05:15 -0400 Subject: [PATCH] feat: more loggers --- plugins/common/log.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/common/log.go b/plugins/common/log.go index 132822328..31d83a9b4 100644 --- a/plugins/common/log.go +++ b/plugins/common/log.go @@ -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))