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

noreply.seb at qos.ch noreply.seb at qos.ch
Thu Oct 26 14:29:57 CEST 2006


Author: seb
Date: Thu Oct 26 14:29:57 2006
New Revision: 784

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

Log:
minor fix

Modified: logback/trunk/logback-access/src/main/java/ch/qos/logback/access/html/DefaultCssBuilder.java
==============================================================================
--- logback/trunk/logback-access/src/main/java/ch/qos/logback/access/html/DefaultCssBuilder.java	(original)
+++ logback/trunk/logback-access/src/main/java/ch/qos/logback/access/html/DefaultCssBuilder.java	Thu Oct 26 14:29:57 2006
@@ -26,55 +26,56 @@
 
   public void addCss(StringBuffer sbuf) {
     sbuf.append("<STYLE  type=\"text/css\">");
-    sbuf.append("    table { ");
-    sbuf.append("                margin-left: 2em; ");
-    sbuf.append("                margin-right: 2em; ");
-    sbuf.append("                border-left: 2px solid #AAA; ");
+    sbuf.append("table{ ");
+    sbuf.append("margin-left: 2em; ");
+    sbuf.append("margin-right: 2em; ");
+    sbuf.append("border-left: 2px solid #AAA; ");
     sbuf.append("}");
     sbuf.append(LINE_SEP);
     sbuf.append("TR.even { ");
-    sbuf.append("               background: #FFFFFF; ");
+    sbuf.append("background: #FFFFFF; ");
     sbuf.append("}");
     sbuf.append(LINE_SEP);
     sbuf.append("TR.odd { ");
-    sbuf.append("                background: #EAEAEA; ");
+    sbuf.append("background: #EAEAEA; ");
     sbuf.append("}");
     sbuf.append(LINE_SEP);
-    sbuf.append("TD { ");
-    sbuf.append("                padding-right: 1ex; ");
-    sbuf.append("                padding-left: 1ex; ");
-    sbuf.append("                border-right: 2px solid #AAA;");
+    sbuf.append("TD {");
+    sbuf.append("padding-right: 1ex; ");
+    sbuf.append("padding-left: 1ex; ");
+    sbuf.append("border-right: 2px solid #AAA;");
     sbuf.append("}");
     sbuf.append(LINE_SEP);
     sbuf.append("TD.Time, TD.Date { ");
-    sbuf.append("                text-align: right; ");
-    sbuf.append("                font-family: courier, monospace; ");
-    sbuf.append("                font-size: smaller; ");
+    sbuf.append("text-align: right; ");
+    sbuf.append("font-family: courier, monospace; ");
+    sbuf.append("font-size: smaller; ");
     sbuf.append("}");
     sbuf.append(LINE_SEP);
     sbuf
         .append("TD.RemoteHost, TD.RequestProtocol, TD.RequestHeader, TD.RequestURL, TD.RemoteUser, TD.RequestURI, TD.ServerName {");
-    sbuf.append("                text-align: left; ");
+    sbuf.append("text-align: left; ");
     sbuf.append("}");
     sbuf.append(LINE_SEP);
     sbuf
         .append("TD.RequestAttribute, TD.RequestCookie, TD.ResponseHeader, TD.RequestParameter {");
-    sbuf.append("                text-align: left; ");
+    sbuf.append("text-align: left; ");
     sbuf.append("}");
     sbuf.append(LINE_SEP);
     sbuf
         .append("TD.RemoteIPAddress, TD.LocalIPAddress, TD.ContentLength, TD.StatusCode, TD.LocalPort {");
-    sbuf.append("                text-align: right; ");
+    sbuf.append("text-align: right; ");
     sbuf.append("}");
     sbuf.append(LINE_SEP);
     sbuf.append("TR.header { ");
-    sbuf.append("                background: #596ED5; ");
-    sbuf.append("                color: #FFF; ");
-    sbuf.append("                font-weight: bold; ");
-    sbuf.append("                font-size: larger; ");
+    sbuf.append("background: #596ED5; ");
+    sbuf.append("color: #FFF; ");
+    sbuf.append("font-weight: bold; ");
+    sbuf.append("font-size: larger; ");
     sbuf.append("}");
     sbuf.append(LINE_SEP);
     sbuf.append("  }");
     sbuf.append("}");
+    sbuf.append("</STYLE>");
   }
 }
\ No newline at end of file

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	Thu Oct 26 14:29:57 2006
@@ -38,15 +38,13 @@
 public class HTMLLayout extends HTMLLayoutBase implements AccessLayout {
 
   /**
-   * Default pattern string for log output. Currently set to the string <b>"%m"
-   * </b> which just prints the application supplied message.
+   * Default pattern string for log output.
    */
-  static final String DEFAULT_CONVERSION_PATTERN = "%remoteIP%date%requestURL%statusCode%bytesSent";
+  static final String DEFAULT_CONVERSION_PATTERN = "%h%l%u%t%r%s%b";
 
   /**
    * Constructs a PatternLayout using the DEFAULT_LAYOUT_PATTERN.
    * 
-   * The default pattern just produces the application supplied message.
    */
   public HTMLLayout() {
     pattern = DEFAULT_CONVERSION_PATTERN;



More information about the logback-dev mailing list