Update logging

Change-Id: Idffa0b49219bf6bd6ff0bc255e0a4f3bbf6e0959
Signed-off-by: Mohamed Abukar <abukar.mohamed@nokia.com>
diff --git a/pkg/xapp/config.go b/pkg/xapp/config.go
index c63e32c..647b3eb 100755
--- a/pkg/xapp/config.go
+++ b/pkg/xapp/config.go
@@ -24,6 +24,7 @@
 	"github.com/fsnotify/fsnotify"
 	"github.com/spf13/viper"
 	"os"
+	"path/filepath"
 )
 
 type Configurator struct {
@@ -41,8 +42,8 @@
 	return *fileName
 }
 
-func LoadConfig() (l Log) {
-	l = Log{}
+func LoadConfig() (l *Log) {
+	l = NewLogger(filepath.Base(os.Args[0]))
 	viper.SetConfigFile(parseCmd())
 
 	if err := viper.ReadInConfig(); err != nil {