lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r1676103 - in /lucene/dev/trunk/solr: CHANGES.txt core/src/java/org/apache/solr/util/SolrLogLayout.java
Date Sun, 26 Apr 2015 13:22:08 GMT
Author: markrmiller
Date: Sun Apr 26 13:22:07 2015
New Revision: 1676103

URL: http://svn.apache.org/r1676103
Log:
SOLR-7425: Improve MDC based logging format.

Modified:
    lucene/dev/trunk/solr/CHANGES.txt
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/SolrLogLayout.java

Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=1676103&r1=1676102&r2=1676103&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Sun Apr 26 13:22:07 2015
@@ -231,6 +231,8 @@ Other Changes
 * SOLR-5213: Log when shard splitting unexpectedly leads to documents going to
   no or multiple shards (Christine Poerschke, Ramkumar Aiyengar)
 
+* SOLR-7425: Improve MDC based logging format. (Mark Miller)
+
 ==================  5.1.0 ==================
 
 Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/SolrLogLayout.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/SolrLogLayout.java?rev=1676103&r1=1676102&r2=1676103&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/SolrLogLayout.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/SolrLogLayout.java Sun Apr 26
13:22:07 2015
@@ -365,19 +365,19 @@ public class SolrLogLayout extends Layou
 
   private void appendMDC(StringBuilder sb) {
     if (!StringUtils.isEmpty(MDC.get(NODE_NAME_PROP)))  {
-      sb.append(" N:").append(MDC.get(NODE_NAME_PROP));
+      sb.append(" n:").append(MDC.get(NODE_NAME_PROP));
     }
     if (!StringUtils.isEmpty(MDC.get(COLLECTION_PROP)))  {
-      sb.append(" C:").append(MDC.get(COLLECTION_PROP));
+      sb.append(" c:").append(MDC.get(COLLECTION_PROP));
     }
     if (!StringUtils.isEmpty(MDC.get(SHARD_ID_PROP))) {
-      sb.append(" S:").append(MDC.get(SHARD_ID_PROP));
+      sb.append(" s:").append(MDC.get(SHARD_ID_PROP));
     }
     if (!StringUtils.isEmpty(MDC.get(REPLICA_PROP))) {
-      sb.append(" R:").append(MDC.get(REPLICA_PROP));
+      sb.append(" r:").append(MDC.get(REPLICA_PROP));
     }
     if (!StringUtils.isEmpty(MDC.get(CORE_NAME_PROP))) {
-      sb.append(" c:").append(MDC.get(CORE_NAME_PROP));
+      sb.append(" x:").append(MDC.get(CORE_NAME_PROP));
     }
   }
 }



Mime
View raw message