Introducing new logger, logging debug to file and info to stderr (#134)

* Introducing new logger to file debug and info to stderr
This commit is contained in:
Igor Gov
2021-07-25 10:08:37 +03:00
committed by GitHub
parent 803681a239
commit f64ee23c74
13 changed files with 112 additions and 71 deletions

View File

@@ -2,7 +2,6 @@ package uiUtils
import (
"bufio"
"fmt"
"github.com/up9inc/mizu/cli/mizu"
"log"
"os"
@@ -12,7 +11,7 @@ import (
func AskForConfirmation(s string) bool {
reader := bufio.NewReader(os.Stdin)
fmt.Printf(mizu.Magenta, s)
mizu.Log.Infof(mizu.Magenta, s)
response, err := reader.ReadString('\n')
if err != nil {