]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
These log messages are now to noisy + formated array a bit
authorRoland Haeder <roland@mxchange.org>
Tue, 5 Apr 2016 10:54:19 +0000 (12:54 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 5 Apr 2016 10:54:19 +0000 (12:54 +0200)
src/java/org/mxchange/pizzaapplication/beans/localization/PizzaLocalizationSessionBean.java

index bcd72c060a9565a1d6c49ccbda7a4e8486b41894..fea4a58969d3384728fd035b044c08a0ea302a6c 100644 (file)
@@ -16,7 +16,6 @@
  */
 package org.mxchange.pizzaapplication.beans.localization;
 
-import java.text.MessageFormat;
 import java.util.Locale;
 import javax.annotation.PostConstruct;
 import javax.faces.bean.SessionScoped;
@@ -48,14 +47,14 @@ public class PizzaLocalizationSessionBean extends BaseDatabaseBean implements Pi
 
        @Override
        public String getLanguage () {
-               this.getLoggerBeanLocal().logTrace(MessageFormat.format("JobsLocalizationSessionBean::getLanguage(): locale.language={0} - EXIT!", this.getLocale().getLanguage())); //NOI18N
+               //this.getLoggerBeanLocal().logTrace(MessageFormat.format("PizzaLocalizationSessionBean::getLanguage(): locale.language={0} - EXIT!", this.getLocale().getLanguage())); //NOI18N
                return this.getLocale().getLanguage().toLowerCase();
        }
 
        @Override
        public void setLanguage (final String language) {
                // Log trace message
-               this.getLoggerBeanLocal().logTrace(MessageFormat.format("JobsLocalizationSessionBean::setLanguage: language={0} - CALLED!", language)); //NOI18N
+               //this.getLoggerBeanLocal().logTrace(MessageFormat.format("PizzaLocalizationSessionBean::setLanguage: language={0} - CALLED!", language)); //NOI18N
 
                // Language splits
                String[] splits = language.split("_");
@@ -67,31 +66,34 @@ public class PizzaLocalizationSessionBean extends BaseDatabaseBean implements Pi
                Locale loc = new Locale(splits[0], splits[1]);
 
                // Log debug message
-               this.getLoggerBeanLocal().logDebug(MessageFormat.format("JobsLocalizationSessionBean::setLanguage: loc={0}", loc)); //NOI18N
+               //this.getLoggerBeanLocal().logDebug(MessageFormat.format("PizzaLocalizationSessionBean::setLanguage: loc={0}", loc)); //NOI18N
 
                // Set it here and in the JSF context
                this.setLocale(loc);
                FacesContext.getCurrentInstance().getViewRoot().setLocale(loc);
 
                // Log trace message
-               this.getLoggerBeanLocal().logTrace("JobsLocalizationSessionBean::setLanguage: EXIT!"); //NOI18N
+               //this.getLoggerBeanLocal().logTrace("PizzaLocalizationSessionBean::setLanguage: EXIT!"); //NOI18N
        }
 
        @Override
        public Locale getLocale () {
-               this.getLoggerBeanLocal().logTrace(MessageFormat.format("JobsLocalizationSessionBean::getLocale(): locale={0} - EXIT!", this.locale)); //NOI18N
+               //this.getLoggerBeanLocal().logTrace(MessageFormat.format("PizzaLocalizationSessionBean::getLocale(): locale={0} - EXIT!", this.locale)); //NOI18N
                return this.locale;
        }
 
        @Override
        public void setLocale (final Locale locale) {
-               this.getLoggerBeanLocal().logTrace(MessageFormat.format("JobsLocalizationSessionBean::setLocale(): locale={0} - CALLED!", locale)); //NOI18N
+               //this.getLoggerBeanLocal().logTrace(MessageFormat.format("PizzaLocalizationSessionBean::setLocale(): locale={0} - CALLED!", locale)); //NOI18N
                this.locale = locale;
        }
 
        @Override
        public Locale[] getSelectableLocalizations () {
-               Locale[] locales = {Locale.GERMANY, Locale.US};
+               Locale[] locales = {
+                       Locale.GERMANY,
+                       Locale.US
+               };
                return locales;
        }
 
@@ -101,19 +103,19 @@ public class PizzaLocalizationSessionBean extends BaseDatabaseBean implements Pi
        @PostConstruct
        public void init () {
                // Log trace message
-               this.getLoggerBeanLocal().logTrace("JobsLocalizationSessionBean::init: CALLED!"); //NOI18N
+               //this.getLoggerBeanLocal().logTrace("PizzaLocalizationSessionBean::init: CALLED!"); //NOI18N
 
                // Create locale instance from context
                Locale loc = FacesContext.getCurrentInstance().getExternalContext().getRequestLocale();
 
                // Log debug message
-               this.getLoggerBeanLocal().logDebug(MessageFormat.format("JobsLocalizationSessionBean::init: loc={0}", loc)); //NOI18N
+               //this.getLoggerBeanLocal().logDebug(MessageFormat.format("PizzaLocalizationSessionBean::init: loc={0}", loc)); //NOI18N
 
                // Set it here
                this.setLocale(loc);
 
                // Log trace message
-               this.getLoggerBeanLocal().logTrace("JobsLocalizationSessionBean::init: EXIT!"); //NOI18N
+               //this.getLoggerBeanLocal().logTrace("PizzaLocalizationSessionBean::init: EXIT!"); //NOI18N
        }
 
 }