]> git.mxchange.org Git - jfinancials-war.git/commitdiff
Added class names in log message
authorRoland Häder <roland@mxchange.org>
Tue, 19 Apr 2016 08:30:13 +0000 (10:30 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 19 Apr 2016 17:45:06 +0000 (19:45 +0200)
src/java/org/mxchange/addressbook/converter/cellphone/AddressbookCellphoneConverter.java
src/java/org/mxchange/addressbook/converter/contact/AddressbookContactConverter.java
src/java/org/mxchange/addressbook/converter/country/AddressbookCountryConverter.java
src/java/org/mxchange/addressbook/converter/mobileprovider/AddressbookMobileProviderConverter.java
src/java/org/mxchange/addressbook/converter/user/AddressbookUserConverter.java

index 0c62db94858e2d828a4597e739721557e7e84a7d..02cff527015df8268268118d63247f9a999b5018 100644 (file)
@@ -79,7 +79,7 @@ public class AddressbookCellphoneConverter implements Converter {
                // Is the value null or empty?
                if ((null == submittedValue) || (submittedValue.trim().isEmpty())) {
                        // Warning message
-                       this.loggerBeanLocal.logWarning("getAsObject: submittedValue is null or empty - EXIT!"); //NOI18N
+                       this.loggerBeanLocal.logWarning(MessageFormat.format("{0}.getAsObject(): submittedValue is null or empty - EXIT!", this.getClass().getSimpleName())); //NOI18N
 
                        // Return null
                        return null;
@@ -105,7 +105,7 @@ public class AddressbookCellphoneConverter implements Converter {
                        throw new ConverterException(ex);
                } catch (final PhoneEntityNotFoundException ex) {
                        // Debug message
-                       this.loggerBeanLocal.logDebug(MessageFormat.format("getAsObject: Exception: {0} - Returning null ...", ex)); //NOI18N
+                       this.loggerBeanLocal.logDebug(MessageFormat.format("{0}.getAsObject(): Exception: {1} - Returning null ...", this.getClass().getSimpleName(), ex)); //NOI18N
                }
 
                // Trace message
index f77e339160d63eb3dd67872e1176d1aa553a1eb8..bc2312362b12815384a173f0a583d8e3052d69e2 100644 (file)
@@ -78,7 +78,7 @@ public class AddressbookContactConverter implements Converter {
                // Is the value null or empty?
                if ((null == submittedValue) || (submittedValue.trim().isEmpty())) {
                        // Warning message
-                       this.loggerBeanLocal.logWarning("getAsObject: submittedValue is null or empty - EXIT!"); //NOI18N
+                       this.loggerBeanLocal.logWarning(MessageFormat.format("{0}.getAsObject(): submittedValue is null or empty - EXIT!", this.getClass().getSimpleName())); //NOI18N
 
                        // Return null
                        return null;
@@ -104,7 +104,7 @@ public class AddressbookContactConverter implements Converter {
                        throw new ConverterException(ex);
                } catch (final ContactNotFoundException ex) {
                        // Debug message
-                       this.loggerBeanLocal.logDebug(MessageFormat.format("getAsObject: Exception: {0} - Returning null ...", ex)); //NOI18N
+                       this.loggerBeanLocal.logDebug(MessageFormat.format("{0}.getAsObject(): Exception: {1} - Returning null ...", this.getClass().getSimpleName(), ex)); //NOI18N
                }
 
                // Trace message
index ee368cd470564c1a9161368b0d9d42fdd5e02004..451f6c429ca4afcb4093ee0a1d41ee4125fdf2a2 100644 (file)
@@ -78,7 +78,7 @@ public class AddressbookCountryConverter implements Converter {
                // Is the value null or empty?
                if ((null == submittedValue) || (submittedValue.trim().isEmpty())) {
                        // Warning message
-                       this.loggerBeanLocal.logWarning("getAsObject: submittedValue is null or empty - EXIT!"); //NOI18N
+                       this.loggerBeanLocal.logWarning(MessageFormat.format("{0}.getAsObject(): submittedValue is null or empty - EXIT!", this.getClass().getSimpleName())); //NOI18N
 
                        // Return null
                        return null;
index cd254cfd7cf50551e9ac30c8742e51b399487f73..6c0e8f048f86e88d17d2aa9eecff2be0d1ef7a43 100644 (file)
@@ -78,7 +78,7 @@ public class AddressbookMobileProviderConverter implements Converter {
                // Is the value null or empty?
                if ((null == submittedValue) || (submittedValue.trim().isEmpty())) {
                        // Warning message
-                       this.loggerBeanLocal.logWarning("getAsObject: submittedValue is null or empty - EXIT!"); //NOI18N
+                       this.loggerBeanLocal.logWarning(MessageFormat.format("{0}.getAsObject(): submittedValue is null or empty - EXIT!", this.getClass().getSimpleName())); //NOI18N
 
                        // Return null
                        return null;
index 7e559db1bb2eb144cbecc1203ae856986b690c05..563d4db7dbc3593c3bd060ca6f9f061cff722fcf 100644 (file)
@@ -78,7 +78,7 @@ public class AddressbookUserConverter implements Converter {
                // Is the value null or empty?
                if ((null == submittedValue) || (submittedValue.trim().isEmpty())) {
                        // Warning message
-                       this.loggerBeanLocal.logWarning("getAsObject: submittedValue is null or empty - EXIT!"); //NOI18N
+                       this.loggerBeanLocal.logWarning(MessageFormat.format("{0}.getAsObject(): submittedValue is null or empty - EXIT!", this.getClass().getSimpleName())); //NOI18N
 
                        // Return null
                        return null;