Author: rgoers
Date: Sun Oct 14 22:24:25 2012
New Revision: 1398144
URL: http://svn.apache.org/viewvc?rev=1398144&view=rev
Log:
Add shell of PatternLayout
Added:
logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/PatternLayout.java
Modified:
logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Layout.java
Modified:
logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Layout.java
URL:
http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Layout.java?rev=1398144&r1=1398143&r2=1398144&view=diff
==============================================================================
---
logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Layout.java
(original)
+++
logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Layout.java
Sun Oct 14 22:24:25 2012
@@ -32,7 +32,7 @@ public abstract class Layout {
/**
* Implement this method to create your own layout format.
*/
- abstract public String format(LoggingEvent event);
+ public abstract String format(LoggingEvent event);
/**
* Returns the content type output by this layout. The base class
@@ -73,6 +73,6 @@ public abstract class Layout {
*
* @since 0.8.4
*/
- abstract public boolean ignoresThrowable();
+ public abstract boolean ignoresThrowable();
}
Added:
logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/PatternLayout.java
URL:
http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/PatternLayout.java?rev=1398144&view=auto
==============================================================================
---
logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/PatternLayout.java
(added)
+++
logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/PatternLayout.java
Sun Oct 14 22:24:25 2012
@@ -0,0 +1,35 @@
+/*
+ * 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.log4j;
+
+import org.apache.log4j.spi.LoggingEvent;
+
+/**
+ *
+ */
+public class PatternLayout extends Layout {
+
+ @Override
+ public String format(LoggingEvent event) {
+ return "";
+ }
+
+ @Override
+ public boolean ignoresThrowable() {
+ return true;
+ }
+}