Initialize logger for virtctl
@@ -8,6 +8,7 @@ import (
"github.com/spf13/cobra"
"kubevirt.io/kubevirt/pkg/kubecli"
+ "kubevirt.io/kubevirt/pkg/log"
"kubevirt.io/kubevirt/pkg/virtctl/console"
"kubevirt.io/kubevirt/pkg/virtctl/expose"
"kubevirt.io/kubevirt/pkg/virtctl/templates"
@@ -52,6 +53,7 @@ func NewVirtctlCommand() *cobra.Command {
}
func Execute() {
+ log.InitializeLogging("virtctl")
if err := NewVirtctlCommand().Execute(); err != nil {
fmt.Println(strings.TrimSpace(err.Error()))
os.Exit(1)
