]> git.mxchange.org Git - jjobs-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 18:19:49 +0000 (20:19 +0200)
src/java/org/mxchange/jjobs/converter/cellphone/JobsCellphoneConverter.java
src/java/org/mxchange/jjobs/converter/contact/JobsContactConverter.java
src/java/org/mxchange/jjobs/converter/country/JobsCountryConverter.java
src/java/org/mxchange/jjobs/converter/mobileprovider/JobsMobileProviderConverter.java
src/java/org/mxchange/jjobs/converter/user/JobsUserConverter.java

index 4412841c8e643b86c8ced2da4e8bc59b6cac3526..0d3aa8ada4582a8bc93817e54f0fc3576477401c 100644 (file)
@@ -79,7 +79,7 @@ public class JobsCellphoneConverter 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 JobsCellphoneConverter 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 04c07f9ea607ec25c8dae5e7750c85f85521a87d..aef212a0ca8a068bde9c3e245b2636ba99a106da 100644 (file)
@@ -78,7 +78,7 @@ public class JobsContactConverter 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 JobsContactConverter 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 9fd8bbf546358ad4d2e218521c41221da71aaa6d..5511c7cefc0705f20a8bd8b79e83dd61a23d250a 100644 (file)
@@ -78,7 +78,7 @@ public class JobsCountryConverter 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 941751f30c645e6c5618ddb0c7683b0aabdd2e7b..520f48388d4272b2f2ac3fc1734486f7c204c834 100644 (file)
@@ -78,7 +78,7 @@ public class JobsMobileProviderConverter 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 92affc6ad2acaf8c405f1aee4ed927ba646accff..c58d63ae6061e9e942051bb10ea6de92ea43bd24 100644 (file)
@@ -80,7 +80,7 @@ public class JobsUserConverter 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;