geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject geode git commit: Change to use StatusLogger
Date Wed, 18 Jan 2017 00:45:12 GMT
Repository: geode
Updated Branches:
  refs/heads/feature/GEODE-2297-2 6d8aab0d7 -> fa3efda3e


Change to use StatusLogger


Project: http://git-wip-us.apache.org/repos/asf/geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode/commit/fa3efda3
Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/fa3efda3
Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/fa3efda3

Branch: refs/heads/feature/GEODE-2297-2
Commit: fa3efda3ef27d2980c69234aec510be34acca5cf
Parents: 6d8aab0
Author: Kirk Lund <klund@apache.org>
Authored: Tue Jan 17 16:44:56 2017 -0800
Committer: Kirk Lund <klund@apache.org>
Committed: Tue Jan 17 16:44:56 2017 -0800

----------------------------------------------------------------------
 .../org/apache/geode/internal/logging/log4j/AlertAppender.java  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/fa3efda3/geode-core/src/main/java/org/apache/geode/internal/logging/log4j/AlertAppender.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/org/apache/geode/internal/logging/log4j/AlertAppender.java
b/geode-core/src/main/java/org/apache/geode/internal/logging/log4j/AlertAppender.java
index a6c54ab..e44c336 100644
--- a/geode-core/src/main/java/org/apache/geode/internal/logging/log4j/AlertAppender.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/logging/log4j/AlertAppender.java
@@ -26,6 +26,7 @@ import org.apache.logging.log4j.core.LoggerContext;
 import org.apache.logging.log4j.core.appender.AbstractAppender;
 import org.apache.logging.log4j.core.config.LoggerConfig;
 import org.apache.logging.log4j.core.layout.PatternLayout;
+import org.apache.logging.log4j.status.StatusLogger;
 
 import org.apache.geode.distributed.DistributedMember;
 import org.apache.geode.distributed.internal.DistributionManager;
@@ -39,11 +40,11 @@ import org.apache.geode.internal.tcp.ReenteredConnectException;
 /**
  * A Log4j Appender which will notify listeners whenever a message of the requested level
is written
  * to the log file.
- * 
  */
 public final class AlertAppender extends AbstractAppender implements PropertyChangeListener
{
+  private static final StatusLogger logger = StatusLogger.getLogger();
+
   private static final String APPENDER_NAME = AlertAppender.class.getName();
-  private static final Logger logger = LogService.getLogger();
   private static final AlertAppender instance = new AlertAppender();
 
   /** Is this thread in the process of alerting? */


Mime
View raw message