This is an automated email from the ASF dual-hosted git repository.

klund pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git

commit 225833b5319b2de0e9e22a0e411008cf0f606932
Author: Kirk Lund <kl...@apache.org>
AuthorDate: Fri Nov 2 15:24:35 2018 -0700

    GEODE-2644: Define interfaces for new Log4j2 Appenders
---
 .../internal/logging/log4j/DebuggableAppender.java | 28 ++++++++++++++++++++++
 .../internal/logging/log4j/PausableAppender.java   | 26 ++++++++++++++++++++
 2 files changed, 54 insertions(+)

diff --git 
a/geode-core/src/main/java/org/apache/geode/internal/logging/log4j/DebuggableAppender.java
 
b/geode-core/src/main/java/org/apache/geode/internal/logging/log4j/DebuggableAppender.java
new file mode 100644
index 0000000..1aaac1b
--- /dev/null
+++ 
b/geode-core/src/main/java/org/apache/geode/internal/logging/log4j/DebuggableAppender.java
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geode.internal.logging.log4j;
+
+import java.util.List;
+
+import org.apache.logging.log4j.core.LogEvent;
+
+public interface DebuggableAppender {
+
+  void clearLogEvents();
+
+  List<LogEvent> getLogEvents();
+}
diff --git 
a/geode-core/src/main/java/org/apache/geode/internal/logging/log4j/PausableAppender.java
 
b/geode-core/src/main/java/org/apache/geode/internal/logging/log4j/PausableAppender.java
new file mode 100644
index 0000000..6321821
--- /dev/null
+++ 
b/geode-core/src/main/java/org/apache/geode/internal/logging/log4j/PausableAppender.java
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geode.internal.logging.log4j;
+
+public interface PausableAppender {
+
+  void pause();
+
+  void resume();
+
+  boolean isPaused();
+}

Reply via email to