myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject [myfaces-tobago] branch master updated: auto LOG category
Date Thu, 07 Mar 2019 18:17:40 GMT
This is an automated email from the ASF dual-hosted git repository.

lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/master by this push:
     new b7f7e18  auto LOG category
b7f7e18 is described below

commit b7f7e18d029e3ca1e4496b57015817bd9630d2ea
Author: Udo Schnurpfeil <lofwyr@apache.org>
AuthorDate: Thu Mar 7 19:17:13 2019 +0100

    auto LOG category
---
 .../java/org/apache/myfaces/tobago/internal/util/Deprecation.java     | 4 +++-
 .../java/org/apache/myfaces/tobago/internal/util/SortingUtils.java    | 3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/Deprecation.java
b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/Deprecation.java
index f66f297..0ffeaeb 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/Deprecation.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/Deprecation.java
@@ -22,6 +22,8 @@ package org.apache.myfaces.tobago.internal.util;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+import java.lang.invoke.MethodHandles;
+
 
 public final class Deprecation {
 
@@ -46,6 +48,6 @@ public final class Deprecation {
    * This Logger category can be switched off, in production environment without
    * affecting the normal logging category.
    */
-  public static final Logger LOG = LoggerFactory.getLogger(Deprecation.class);
+  public static final Logger LOG = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
 
 }
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/SortingUtils.java
b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/SortingUtils.java
index 2c9db2c..6ca4fef 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/SortingUtils.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/SortingUtils.java
@@ -41,6 +41,7 @@ import javax.faces.component.UISelectMany;
 import javax.faces.component.UISelectOne;
 import javax.faces.context.FacesContext;
 import javax.faces.model.DataModel;
+import java.lang.invoke.MethodHandles;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collections;
@@ -49,7 +50,7 @@ import java.util.List;
 
 public class SortingUtils {
 
-  private static final Logger LOG = LoggerFactory.getLogger(SortingUtils.class);
+  private static final Logger LOG = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
 
   private SortingUtils() {
   }


Mime
View raw message