[logback-dev] svn commit: r770 - in logback/trunk: logback-access/src/main/java/ch/qos/logback/access/html logback-classic/src/main/java/ch/qos/logback/classic/html

noreply.seb at qos.ch noreply.seb at qos.ch
Wed Oct 25 11:35:27 CEST 2006


Author: seb
Date: Wed Oct 25 11:35:26 2006
New Revision: 770

Modified:
   logback/trunk/logback-access/src/main/java/ch/qos/logback/access/html/HTMLLayout.java
   logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/html/HTMLLayout.java

Log:
html layouts now instanciante a default css builder in their constructor.
temporary situation before classic and access modules have their own default css builder

Modified: logback/trunk/logback-access/src/main/java/ch/qos/logback/access/html/HTMLLayout.java
==============================================================================
--- logback/trunk/logback-access/src/main/java/ch/qos/logback/access/html/HTMLLayout.java	(original)
+++ logback/trunk/logback-access/src/main/java/ch/qos/logback/access/html/HTMLLayout.java	Wed Oct 25 11:35:26 2006
@@ -15,6 +15,7 @@
 import ch.qos.logback.access.AccessLayout;
 import ch.qos.logback.access.PatternLayout;
 import ch.qos.logback.access.spi.AccessEvent;
+import ch.qos.logback.core.html.DefaultCssBuilder;
 import ch.qos.logback.core.html.HTMLLayoutBase;
 import ch.qos.logback.core.html.NOPThrowableRenderer;
 import ch.qos.logback.core.pattern.Converter;
@@ -50,6 +51,7 @@
   public HTMLLayout() {
     pattern = DEFAULT_CONVERSION_PATTERN;
     throwableRenderer = new NOPThrowableRenderer();
+    cssBuilder = new DefaultCssBuilder();  
   }
   
   @Override

Modified: logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/html/HTMLLayout.java
==============================================================================
--- logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/html/HTMLLayout.java	(original)
+++ logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/html/HTMLLayout.java	Wed Oct 25 11:35:26 2006
@@ -15,6 +15,7 @@
 import ch.qos.logback.classic.ClassicLayout;
 import ch.qos.logback.classic.PatternLayout;
 import ch.qos.logback.classic.spi.LoggingEvent;
+import ch.qos.logback.core.html.DefaultCssBuilder;
 import ch.qos.logback.core.html.HTMLLayoutBase;
 import ch.qos.logback.core.pattern.Converter;
 
@@ -48,6 +49,7 @@
   public HTMLLayout() {
     pattern = DEFAULT_CONVERSION_PATTERN;
     throwableRenderer = new DefaultThrowableRenderer();
+    cssBuilder = new DefaultCssBuilder();
   }
   
   protected Map<String, String> getDefaultConverterMap() {



More information about the logback-dev mailing list