]> git.mxchange.org Git - pizzaservice-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:31:07 +0000 (19:31 +0200)
src/java/org/mxchange/pizzaapplication/converter/cellphone/PizzaCellphoneConverter.java
src/java/org/mxchange/pizzaapplication/converter/contact/PizzaContactConverter.java
src/java/org/mxchange/pizzaapplication/converter/country/PizzaCountryConverter.java
src/java/org/mxchange/pizzaapplication/converter/mobileprovider/PizzaMobileProviderConverter.java
src/java/org/mxchange/pizzaapplication/converter/user/PizzaUserConverter.java

index 23f5926933ee01cded16e7eaa703c85c53d553dd..7ed8ca196ded960553fe951aab8e056397f1b2fc 100644 (file)
@@ -79,7 +79,7 @@ public class PizzaCellphoneConverter 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 PizzaCellphoneConverter 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 690eb4e406177b1bb33a90b3d043aa8ba9f36750..5e4df62d64ed88a0ac620935376dbc25cd633589 100644 (file)
@@ -78,7 +78,7 @@ public class PizzaContactConverter 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 PizzaContactConverter 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 77bf14906fb60854a1c17a31f729311fbb9d8c51..15db8b6ea6f43c2bf84e93d56bd3267a16d0950e 100644 (file)
@@ -78,7 +78,7 @@ public class PizzaCountryConverter 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 0830b9ab75c7508f6241490062f1d8b3bbde251d..8725217294b780527685c693cc71d062b1b4ea83 100644 (file)
@@ -78,7 +78,7 @@ public class PizzaMobileProviderConverter 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 a039c9a2de6f5f3c1fda788d7b5cfe458c36badd..047acbeafc4eb0257b1cb1299a367c3ba33826cf 100644 (file)
@@ -78,7 +78,7 @@ public class PizzaUserConverter 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;