[VOL-3142] Fix issue with registration of log package name by AddPackage method

Change-Id: I8f5cb0dab70302147db9a9ab0b28651eb955a2d7
diff --git a/VERSION b/VERSION
index be706e8..60b9d63 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-3.1.22
+3.1.23
diff --git a/pkg/log/log_classic.go b/pkg/log/log_classic.go
index aab1048..b47b562 100644
--- a/pkg/log/log_classic.go
+++ b/pkg/log/log_classic.go
@@ -75,6 +75,10 @@
 }
 
 func AddPackage(outputType string, level LogLevel, defaultFields Fields, pkgNames ...string) (Logger, error) {
+	// Get package name of caller method and pass further on; else this method is considered caller
+	pkgName, _, _, _ := getCallerInfo()
+
+	pkgNames = append(pkgNames, pkgName)
 	clg, err := RegisterPackage(outputType, level, defaultFields, pkgNames...)
 	if err != nil {
 		return nil, err