cmd: logging using logrus

This commit is contained in:
Christian Schwarz
2017-09-22 14:13:58 +02:00
parent a459f0a0f6
commit bfcba7b281
17 changed files with 307 additions and 180 deletions

View File

@ -11,12 +11,16 @@
package cmd
import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
type Logger interface {
Printf(format string, v ...interface{})
}
//
//type Logger interface {
// Printf(format string, v ...interface{})
//}
type Logger logrus.FieldLogger
var RootCmd = &cobra.Command{
Use: "zrepl",