Author: chetanm
Date: Mon Feb 24 13:33:37 2014
New Revision: 1571284

URL: http://svn.apache.org/r1571284
Log:
SLING-3410 - Log the Logback initialization related logs to normal log for 
transient errors

Added a marker '*Logback Status*' in case of transient errors

Modified:
    
sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/logback/internal/util/SlingStatusPrinter.java

Modified: 
sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/logback/internal/util/SlingStatusPrinter.java
URL: 
http://svn.apache.org/viewvc/sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/logback/internal/util/SlingStatusPrinter.java?rev=1571284&r1=1571283&r2=1571284&view=diff
==============================================================================
--- 
sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/logback/internal/util/SlingStatusPrinter.java
 (original)
+++ 
sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/logback/internal/util/SlingStatusPrinter.java
 Mon Feb 24 13:33:37 2014
@@ -80,8 +80,13 @@ public class SlingStatusPrinter {
             sb.append(CoreConstants.LINE_SEPARATOR);
         }
 
+        String prefix = "";
+        if(initSuccess){
+            prefix = "*Logback Status* ";
+        }
+
         for (Status s : statusList) {
-            StatusPrinter.buildStr(sb, "", s);
+            StatusPrinter.buildStr(sb, prefix, s);
         }
 
         //In case logging system completely fails then log the message in 
System out


Reply via email to