From: Roland Haeder Date: Thu, 10 Sep 2015 07:12:10 +0000 (+0200) Subject: Harr, this logger thing does only show LoggerBean.java as caller, not the actual... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=09634a909f042967c7c4d9c406ad0cb435fb608a;p=jcore-utils.git Harr, this logger thing does only show LoggerBean.java as caller, not the actual calling class :-( Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java b/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java index 5d1afec..703e9ab 100644 --- a/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java +++ b/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java @@ -68,7 +68,7 @@ public abstract class BaseObjectValidator extends BaseEeSystem implements Valida */ protected void preValidate (final FacesContext context, final UIComponent component, final Object value, final String[] requiredFields) throws ValidatorException { // Trace message - this.getLogger().logTrace(MessageFormat.format("context={0},component={1},value={2},requiredFields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N + this.getLogger().logTrace(MessageFormat.format("preValidate: context={0},component={1},value={2},requiredFields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N // Init message and key FacesMessage facesMessage = null; @@ -83,7 +83,7 @@ public abstract class BaseObjectValidator extends BaseEeSystem implements Valida // Check component's id against required fields and find a match for (final String field : requiredFields) { // Get logger - this.getLogger().logDebug(MessageFormat.format("field={0},clientId={1}", field, clientId)); //NOI18N + this.getLogger().logDebug(MessageFormat.format("preValidate: field={0},clientId={1}", field, clientId)); //NOI18N // Is it the same? if (clientId.endsWith(field)) { @@ -104,7 +104,7 @@ public abstract class BaseObjectValidator extends BaseEeSystem implements Valida } // Debug message - this.getLogger().logDebug(MessageFormat.format("isValidField={0}", isValidField)); //NOI18N + this.getLogger().logDebug(MessageFormat.format("preValidate: isValidField={0}", isValidField)); //NOI18N // Valid field? if (!isValidField) { @@ -113,7 +113,7 @@ public abstract class BaseObjectValidator extends BaseEeSystem implements Valida } // Debug message - this.getLogger().logDebug(MessageFormat.format("facesMessage={0}", facesMessage)); //NOI18N + this.getLogger().logDebug(MessageFormat.format("preValidate: facesMessage={0}", facesMessage)); //NOI18N // Is it not null? if (null != facesMessage) { @@ -121,7 +121,7 @@ public abstract class BaseObjectValidator extends BaseEeSystem implements Valida } // Trace message - this.getLogger().logTrace("EXIT!"); //NOI18N + this.getLogger().logTrace("preValidate: EXIT!"); //NOI18N } /** diff --git a/src/org/mxchange/jcoreee/validator/bool/BaseBooleanValidator.java b/src/org/mxchange/jcoreee/validator/bool/BaseBooleanValidator.java index fc661bc..17c4f84 100644 --- a/src/org/mxchange/jcoreee/validator/bool/BaseBooleanValidator.java +++ b/src/org/mxchange/jcoreee/validator/bool/BaseBooleanValidator.java @@ -38,7 +38,7 @@ public abstract class BaseBooleanValidator extends BaseObjectValidator implement @Override public void preValidate (final FacesContext context, final UIComponent component, final Object value, final String[] requiredFields) throws ValidatorException { // Trace message - this.getLogger().logTrace(MessageFormat.format("context={0},component={1},value={2},requiredFields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N + this.getLogger().logTrace(MessageFormat.format("preValidate: context={0},component={1},value={2},requiredFields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N // Pre-validate super.preValidate(context, component, value, requiredFields); @@ -50,7 +50,7 @@ public abstract class BaseBooleanValidator extends BaseObjectValidator implement // So far all fine, no check if the field is fine for (final String field : requiredFields) { // Debug message - this.getLogger().logDebug(MessageFormat.format("field={0},clientId={1}", field, clientId)); //NOI18N + this.getLogger().logDebug(MessageFormat.format("preValidate: field={0},clientId={1}", field, clientId)); //NOI18N // Is it the same? if (clientId.endsWith(field)) { diff --git a/src/org/mxchange/jcoreee/validator/bool/privacy_terms/PrivacyTermsCheckboxValidator.java b/src/org/mxchange/jcoreee/validator/bool/privacy_terms/PrivacyTermsCheckboxValidator.java index 17476d0..68fbd8c 100644 --- a/src/org/mxchange/jcoreee/validator/bool/privacy_terms/PrivacyTermsCheckboxValidator.java +++ b/src/org/mxchange/jcoreee/validator/bool/privacy_terms/PrivacyTermsCheckboxValidator.java @@ -33,7 +33,7 @@ public class PrivacyTermsCheckboxValidator extends BaseBooleanValidator implemen @Override public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException { // Trace message - this.getLogger().logTrace(MessageFormat.format("context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N + this.getLogger().logTrace(MessageFormat.format("validate: context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N // All accepted, required fields String[] requiredFileds = {"privacy", "terms"}; //NOI18N @@ -42,6 +42,6 @@ public class PrivacyTermsCheckboxValidator extends BaseBooleanValidator implemen super.preValidate(context, component, value, requiredFileds); // Trace message - this.getLogger().logTrace("EXIT!"); //NOI18N + this.getLogger().logTrace("validate: EXIT!"); //NOI18N } } diff --git a/src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java b/src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java index 65056d4..2075353 100644 --- a/src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java +++ b/src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java @@ -35,7 +35,7 @@ public abstract class BaseStringValidator extends BaseObjectValidator { @Override protected void preValidate (final FacesContext context, final UIComponent component, final Object value, final String[] requiredFields) throws ValidatorException { // Trace message - this.getLogger().logTrace(MessageFormat.format("context={0},component={1},value={2},fields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N + this.getLogger().logTrace(MessageFormat.format("preValidate: context={0},component={1},value={2},fields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N // Pre-validate (e.g. on null) super.preValidate(context, component, value, requiredFields); @@ -48,7 +48,7 @@ public abstract class BaseStringValidator extends BaseObjectValidator { // So far all fine, no check if the field is fine for (final String field : requiredFields) { // Debug message - this.getLogger().logDebug(MessageFormat.format("field={0},clientId={1}", field, clientId)); //NOI18N + this.getLogger().logDebug(MessageFormat.format("preValidate: field={0},clientId={1}", field, clientId)); //NOI18N // Is it the same? if (clientId.endsWith(field)) { @@ -74,7 +74,7 @@ public abstract class BaseStringValidator extends BaseObjectValidator { } // Debug message - this.getLogger().logDebug(MessageFormat.format("facesMessage={0}", facesMessage)); //NOI18N + this.getLogger().logDebug(MessageFormat.format("preValidate: facesMessage={0}", facesMessage)); //NOI18N // Is it not null? if (null != facesMessage) { @@ -82,6 +82,6 @@ public abstract class BaseStringValidator extends BaseObjectValidator { } // Trace message - this.getLogger().logTrace("EXIT!"); //NOI18N + this.getLogger().logTrace("preValidate: EXIT!"); //NOI18N } } diff --git a/src/org/mxchange/jcoreee/validator/string/names/NameValidator.java b/src/org/mxchange/jcoreee/validator/string/names/NameValidator.java index b512c3a..a59caa2 100644 --- a/src/org/mxchange/jcoreee/validator/string/names/NameValidator.java +++ b/src/org/mxchange/jcoreee/validator/string/names/NameValidator.java @@ -32,7 +32,7 @@ public class NameValidator extends BaseStringValidator implements Validator { @Override public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException { // Trace message - this.getLogger().logTrace(MessageFormat.format("context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N + this.getLogger().logTrace(MessageFormat.format("validate: context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N // All accepted, required fields String[] requiredFileds = {"firstName", "familyName", "city", "street"}; //NOI18N @@ -41,6 +41,6 @@ public class NameValidator extends BaseStringValidator implements Validator { super.preValidate(context, component, value, requiredFileds); // Trace message - this.getLogger().logTrace("EXIT!"); //NOI18N + this.getLogger().logTrace("validate: EXIT!"); //NOI18N } }