diff --git a/cmd/getndf.go b/cmd/getndf.go
index 22edea7c6f99803110bcf95a88914ab01e84f67c..881a246f909008debbe7bc5f48316bf285d26283 100644
--- a/cmd/getndf.go
+++ b/cmd/getndf.go
@@ -42,6 +42,14 @@ var getNDFCmd = &cobra.Command{
 		"and print it.",
 	Args: cobra.NoArgs,
 	Run: func(cmd *cobra.Command, args []string) {
+		// Note: getndf prints to stdout, so we default to not do that
+		logLevel := viper.GetUint("logLevel")
+		logPath := viper.GetString("log")
+		if logPath == "-" || logPath == "" {
+			logPath = "getndf.log"
+		}
+		initLog(logLevel, logPath)
+		jww.INFO.Printf(Version())
 		gwHost := viper.GetString("gwhost")
 		permHost := viper.GetString("permhost")
 		certPath := viper.GetString("cert")