You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rp...@apache.org on 2015/08/22 15:44:11 UTC

logging-log4j2 git commit: LOG4J2-1097 javadoc

Repository: logging-log4j2
Updated Branches:
  refs/heads/master c18acf171 -> d1f494eca


LOG4J2-1097 javadoc

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

Branch: refs/heads/master
Commit: d1f494ecad27873bff83dca2a0e8ee9c80b7c077
Parents: c18acf1
Author: rpopma <rp...@apache.org>
Authored: Sat Aug 22 22:44:07 2015 +0900
Committer: rpopma <rp...@apache.org>
Committed: Sat Aug 22 22:44:07 2015 +0900

----------------------------------------------------------------------
 .../logging/log4j/core/util/datetime/FixedDateFormat.java    | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d1f494ec/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FixedDateFormat.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FixedDateFormat.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FixedDateFormat.java
index b65fb2b..ff45602 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FixedDateFormat.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FixedDateFormat.java
@@ -21,7 +21,11 @@ import java.util.Calendar;
 import java.util.Objects;
 
 /**
- * Custom time formatter that trades flexibility for performance.
+ * Custom time formatter that trades flexibility for performance. This formatter only supports the date patterns defined
+ * in {@link FixedFormat}. For any other date patterns use {@link FastDateFormat}.
+ * <p>
+ * Related benchmarks: /log4j-perf/src/main/java/org/apache/logging/log4j/perf/jmh/TimeFormatBenchmark.java and
+ * /log4j-perf/src/main/java/org/apache/logging/log4j/perf/jmh/ThreadsafeDateFormatBenchmark.java
  */
 public class FixedDateFormat {
     /**
@@ -137,7 +141,7 @@ public class FixedDateFormat {
         final FixedFormat type = FixedFormat.lookup(options[0]);
         return type == null ? null : new FixedDateFormat(type);
     }
-    
+
     public static FixedDateFormat create(FixedFormat format) {
         return new FixedDateFormat(format);
     }