[logback-dev] svn commit: r773 - in logback/trunk/logback-site/src/site: resources/css xdocTemplates xdocTemplates/manual

noreply.seb at qos.ch noreply.seb at qos.ch
Wed Oct 25 16:59:59 CEST 2006


Author: seb
Date: Wed Oct 25 16:59:59 2006
New Revision: 773

Added:
   logback/trunk/logback-site/src/site/resources/css/
   logback/trunk/logback-site/src/site/resources/css/access.css
   logback/trunk/logback-site/src/site/resources/css/classic.css
Modified:
   logback/trunk/logback-site/src/site/xdocTemplates/license.xml
   logback/trunk/logback-site/src/site/xdocTemplates/manual/index.xml
   logback/trunk/logback-site/src/site/xdocTemplates/manual/layouts.xml

Log:
- Changes to the doc
- Moved printing notice to manual index.html
- Added css files for classic and access

Added: logback/trunk/logback-site/src/site/resources/css/access.css
==============================================================================
--- (empty file)
+++ logback/trunk/logback-site/src/site/resources/css/access.css	Wed Oct 25 16:59:59 2006
@@ -0,0 +1,44 @@
+table { 
+	margin-left: 2em; 
+	margin-right: 2em; 
+	border-left: 2px solid #AAA; 
+}
+
+TR.even { 
+	background: #FFFFFF; 
+}
+
+TR.odd { 
+	background: #EAEAEA; 
+}
+
+TD { 
+	padding-right: 1ex; 
+	padding-left: 1ex; 
+	border-right: 2px solid #AAA;
+}
+
+TD.Time, TD.Date { 
+	text-align: right; 
+	font-family: courier, monospace; 
+	font-size: smaller; 
+}
+
+TD.RemoteHost, TD.RequestProtocol, TD.RequestHeader, TD.RequestURL, TD.RemoteUser, TD.RequestURI, TD.ServerName {
+	text-align: left; 
+}
+
+TD.RequestAttribute, TD.RequestCookie, TD.ResponseHeader, TD.RequestParameter {
+	text-align: left; 
+}
+	
+TD.RemoteIPAddress, TD.LocalIPAddress, TD.ContentLength, TD.StatusCode, TD.LocalPort { 
+	text-align: right; 
+}
+
+TR.header { 
+	background: #596ED5; 
+	color: #FFF; 
+	font-weight: bold; 
+	font-size: larger; 
+}

Added: logback/trunk/logback-site/src/site/resources/css/classic.css
==============================================================================
--- (empty file)
+++ logback/trunk/logback-site/src/site/resources/css/classic.css	Wed Oct 25 16:59:59 2006
@@ -0,0 +1,54 @@
+table { 
+	margin-left: 2em; 
+	margin-right: 2em; 
+	border-left: 2px solid #AAA; 
+}
+
+TR.even { 
+	background: #FFFFFF; 
+}
+
+TR.odd { 
+	background: #EAEAEA; 
+}
+
+TR.warn TD.Level, TR.error TD.Level, TR.fatal TD.Level {
+	font-weight: bold; 
+	color: #FF4040 
+}
+
+TD { 
+	padding-right: 1ex; 
+	padding-left: 1ex; 
+	border-right: 2px solid #AAA;
+}
+
+TD.Time, TD.Date { 
+	text-align: right; 
+	font-family: courier, monospace; 
+	font-size: smaller; 
+}
+
+TD.Thread {
+	text-align: left; 
+}
+	
+TD.Level { 
+	text-align: right; 
+}
+	
+TD.Logger { 
+	text-align: left; 
+}
+
+TR.header { 
+	background: #596ED5; 
+	color: #FFF; 
+	font-weight: bold; 
+	font-size: larger; 
+}
+
+TD.Exception { 
+	background: #A2AEE8; 
+	font-family: courier, monospace;
+}

Modified: logback/trunk/logback-site/src/site/xdocTemplates/license.xml
==============================================================================
--- logback/trunk/logback-site/src/site/xdocTemplates/license.xml	(original)
+++ logback/trunk/logback-site/src/site/xdocTemplates/license.xml	Wed Oct 25 16:59:59 2006
@@ -20,13 +20,13 @@
 			as published by the Free Software Foundation.
 		</p>
 
-		<div class="source big">Logback: the reliable, generic, fast and flexible logging library for Java.  
+		<div class="source big"><pre>Logback: the reliable, generic, fast and flexible logging library for Java.  
 
 Copyright (C) 2000-2006, QOS.ch
 
 This library is free software, you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License as
-published by the Free Software Foundation.</div>
+published by the Free Software Foundation.</pre></div>
 
     <p>Please note that logback is intended to be used behind the
     SLF4J API, which is licensed under <a

Modified: logback/trunk/logback-site/src/site/xdocTemplates/manual/index.xml
==============================================================================
--- logback/trunk/logback-site/src/site/xdocTemplates/manual/index.xml	(original)
+++ logback/trunk/logback-site/src/site/xdocTemplates/manual/index.xml	Wed Oct 25 16:59:59 2006
@@ -14,6 +14,10 @@
 		
 		<p>At the moment, only one chapter is available. More to come.</p>
 
+		<p>Printing notice: if you want to print this document, you  might want to
+		use <a href="http://www.getfirefox.com">Firefox</a>, with <em>Adapt to page size</em> enabled, 
+		or <a href="http://www.opera.com">Opera</a> for better rendering on paper.</p>
+
 		<ul>
 			<li>
 				<a href="layouts.html"><b>Manual Chapter 5: Layout reference</b></a>

Modified: logback/trunk/logback-site/src/site/xdocTemplates/manual/layouts.xml
==============================================================================
--- logback/trunk/logback-site/src/site/xdocTemplates/manual/layouts.xml	(original)
+++ logback/trunk/logback-site/src/site/xdocTemplates/manual/layouts.xml	Wed Oct 25 16:59:59 2006
@@ -43,10 +43,6 @@
 				</td>
 			</tr>
 		</table>
-	
-		<p>Printing notice: if you want to print this document, you  might want to
-		use Firefox, with <em>Adapt to page size</em> enabled, 
-		or Opera for better rendering on paper.</p>
 
 		<h2>What is a layout</h2>
 
@@ -1223,17 +1219,19 @@
 		</p>
 		<p>
 			A user-specified external CSS file can be linked to the html
-			page. In case one does not want to customize the html
-			output, an internal CSS style is used. In that case, the following
+			page. In that case, the following
 			xml element can be nested into the <code>&lt;layout&gt;</code> element.
 		</p>
 <div class="source"><pre>&lt;layout>
   ...
-  &lt;cssBuilder class="ch.qos.logback.core.helpers.CssBuilder">
+  &lt;cssBuilder class="ch.qos.logback.core.html.UrlCssBuilder">
     &lt;param name="url" value="path_to_StyleFile.css" />
   &lt;/cssBuilder>	
   ...
 &lt;/layout></pre></div>
+
+		<p>In case one does not want to customize the html
+			output, an internal CSS style is used.</p>
 		
 		<p>
 			The <code>HTMLLayout</code> is often, although not necessarily used in conjunction with
@@ -1261,23 +1259,23 @@
   &lt;/root&gt;
 &lt;/configuration&gt;</pre></div>
 
-		<p>When <code>HTMLLayout</code> is used with any <code>FileAppender</code>, 
-		one can specify the html page's title, simply by adding an element to the configuration,
-		as shown above:</p>
+		<p><code>HTMLLayout</code> can also be used with any <code>FileAppender</code>. In that
+		case, one can specify a rolling policy to archive log messages automatically.
+		One real world example could use the configuration below.</p>
 		
 <div class="source"><pre>&lt;configuration>
    &lt;appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
    &lt;rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
      &lt;ActiveFileName>lastLogEntries.html&lt;/ActiveFileName>
-     &lt;FileNamePattern>lastLogEntries.%d{yyyy-MM-dd}.log&lt;/FileNamePattern>
+     &lt;FileNamePattern>logEntries.%d{yyyy-MM-dd}.log&lt;/FileNamePattern>
    &lt;/rollingPolicy>
    
    &lt;layout class="ch.qos.logback.classic.html.HTMLLayout">
-      &lt;cssBuilder class="ch.qos.logback.core.helpers.CssBuilder">
-      	&lt;param name="url" value="path_to_StyleFile.css" />
+      &lt;cssBuilder class="ch.qos.logback.core.html.UrlCssBuilder">
+        &lt;url>address_of_a_custom_stylesheet.css&lt;/url>
       &lt;/cssBuilder>	
       &lt;Pattern>%relative%thread%mdc%level%logger%msg&lt;/Pattern>
-      <b>&lt;Title>Last Logging Events&lt;/Title></b>
+      <b>&lt;Title>Logging Events&lt;/Title></b>
     &lt;/layout>
  &lt;/appender> 
 



More information about the logback-dev mailing list