jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [17/17] jena git commit: Comments and typos
Date Tue, 11 Apr 2017 10:05:44 GMT
Comments and typos


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

Branch: refs/heads/master
Commit: 07304bab8a2d0f45e341eb5870599185506596d4
Parents: dc81a42
Author: Andy Seaborne <andy@apache.org>
Authored: Tue Apr 11 10:33:21 2017 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Tue Apr 11 10:33:21 2017 +0100

----------------------------------------------------------------------
 .../org/apache/jena/atlas/logging/java/FlatFormatter.java    | 4 +++-
 .../java/org/apache/jena/atlas/logging/java/FlatHandler.java | 4 ++--
 .../org/apache/jena/atlas/logging/java/TextFormatter.java    | 8 ++++----
 3 files changed, 9 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/07304bab/jena-base/src/main/java/org/apache/jena/atlas/logging/java/FlatFormatter.java
----------------------------------------------------------------------
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/logging/java/FlatFormatter.java
b/jena-base/src/main/java/org/apache/jena/atlas/logging/java/FlatFormatter.java
index 75563e4..4ced9ed 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/logging/java/FlatFormatter.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/logging/java/FlatFormatter.java
@@ -22,7 +22,9 @@ import java.text.MessageFormat ;
 import java.util.logging.Formatter ;
 import java.util.logging.LogRecord ;
 
-/** Very simple formatter - just the log message */ 
+/** Very simple formatter - just the log message.
+ * @see FlatHandler
+ */ 
 public class FlatFormatter extends Formatter {
 
     private final boolean ensureNL ;

http://git-wip-us.apache.org/repos/asf/jena/blob/07304bab/jena-base/src/main/java/org/apache/jena/atlas/logging/java/FlatHandler.java
----------------------------------------------------------------------
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/logging/java/FlatHandler.java b/jena-base/src/main/java/org/apache/jena/atlas/logging/java/FlatHandler.java
index 3216135..c8569aa 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/logging/java/FlatHandler.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/logging/java/FlatHandler.java
@@ -22,14 +22,14 @@ import java.util.logging.LogRecord ;
 import java.util.logging.StreamHandler ;
 
 /** A handler and formatter for unadorned output to stdout.
- * Example: NCSA Format logging in Fuseki alerady formats the whole line 
+ * Example: NCSA Format logging in Fuseki already formats the whole line 
  * 
  * <pre>
  * org.apache.jena.fuseki.Request.level=INFO
  * org.apache.jena.fuseki.Request.useParentHandlers=false
  * org.apache.jena.fuseki.Request.handlers=logging.FlatHandler
  * </pre>
- * 
+ * @see FlatFormatter
  */
 public class FlatHandler extends StreamHandler {
     

http://git-wip-us.apache.org/repos/asf/jena/blob/07304bab/jena-base/src/main/java/org/apache/jena/atlas/logging/java/TextFormatter.java
----------------------------------------------------------------------
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/logging/java/TextFormatter.java
b/jena-base/src/main/java/org/apache/jena/atlas/logging/java/TextFormatter.java
index 05becde..eb3b3a4 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/logging/java/TextFormatter.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/logging/java/TextFormatter.java
@@ -26,7 +26,7 @@ import java.util.logging.LogManager ;
 import java.util.logging.LogRecord ;
 
 /** A pattern-driven log formatter.
- * inspired by Log4j's PatternLayout
+ * Inspired by Log4j's PatternLayout
  * Set a different output pattern with {@code .format}.
  * <p>
  * The default format is {@code "%5$tT %3$-5s %2$-20s :: %6$s\n"}.
@@ -109,7 +109,7 @@ public class TextFormatter extends Formatter
         //    FINEST  -> TRACE
         //    FINER   -> DEBUG
         //    FINE    -> DEBUG
-        //    CONFIG  -> INFO
+        //    CONFIG  -> CONF
         //    INFO    -> INFO
         //    WARNING -> WARN
         //    SEVERE  -> ERROR
@@ -119,8 +119,8 @@ public class TextFormatter extends Formatter
             return "ERROR" ;
         if ( Level.INFO.equals(level) )
             return "INFO" ;
-        if ( Level.CONFIG.equals(level) )   // Keep name.
-            return "CONFIG" ;
+        if ( Level.CONFIG.equals(level) )   // Keep name. No equivalent in SLF4J.
+            return "CONF" ;
         if ( Level.FINE.equals(level) )
             return "DEBUG" ;
         if ( Level.FINER.equals(level) )


Mime
View raw message