[logback-dev] [GIT] Logback: the generic, reliable, fast and flexible logging framework. branch, master, updated. v_0.9.30-15-g385ba8a

added by portage for gitosis-gentoo git-noreply at pixie.qos.ch
Fri Sep 30 23:30:49 CEST 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Logback: the generic, reliable, fast and flexible logging framework.".

The branch, master has been updated
       via  385ba8afa57029a17e436b06b77e3dc1c4e79881 (commit)
       via  958d0a4611b7e10988aa286bf317a0d13468ee6b (commit)
      from  6b7985ee8171195dbaf0a4da4dda2099aa428eb8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.qos.ch/gitweb/?p=logback.git;a=commit;h=385ba8afa57029a17e436b06b77e3dc1c4e79881
http://github.com/ceki/logback/commit/385ba8afa57029a17e436b06b77e3dc1c4e79881

commit 385ba8afa57029a17e436b06b77e3dc1c4e79881
Author: Ceki Gulcu <ceki at qos.ch>
Date:   Fri Sep 30 23:28:19 2011 +0200

    The logback-access module now targets Tomcat 7.x and Jetty 7.x & 8.x as its servlet container platforms.

diff --git a/logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java b/logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java
index ede5b77..e1a6edc 100644
--- a/logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java
+++ b/logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java
@@ -27,7 +27,9 @@ import ch.qos.logback.access.spi.IAccessEvent;
 //import org.apache.catalina.Lifecycle;
 import ch.qos.logback.core.spi.*;
 import org.apache.catalina.Lifecycle;
+import org.apache.catalina.LifecycleException;
 import org.apache.catalina.LifecycleListener;
+import org.apache.catalina.LifecycleState;
 import org.apache.catalina.connector.Request;
 import org.apache.catalina.connector.Response;
 import org.apache.catalina.valves.ValveBase;
@@ -92,7 +94,8 @@ public class LogbackValve extends ValveBase implements Lifecycle, Context,
     return started;
   }
 
-  public void startInternal() {
+  public void startInternal() throws LifecycleException {
+    System.out.println("***startInternal() called");
     if (filename == null) {
       String tomcatHomeProperty = OptionHelper
           .getSystemProperty("catalina.home");
@@ -103,8 +106,10 @@ public class LogbackValve extends ValveBase implements Lifecycle, Context,
               + "]", this));
     }
     File configFile = new File(filename);
+
     if (configFile.exists()) {
       try {
+        System.out.println("***startInternal() JoranConfigurator");
         JoranConfigurator jc = new JoranConfigurator();
         jc.setContext(this);
         jc.doConfigure(filename);
@@ -122,6 +127,7 @@ public class LogbackValve extends ValveBase implements Lifecycle, Context,
     }
 
     started = true;
+    setState(LifecycleState.STARTING);
   }
 
   public String getFilename() {
@@ -173,8 +179,9 @@ public class LogbackValve extends ValveBase implements Lifecycle, Context,
     }
   }
 
-  public void stopInternal() {
+  protected void stopInternal() throws LifecycleException {
     started = false;
+    setState(LifecycleState.STOPPING);
   }
 
   public void addAppender(Appender<IAccessEvent> newAppender) {
diff --git a/logback-site/src/site/pages/access.html b/logback-site/src/site/pages/access.html
index 02a9b4d..3e722d7 100644
--- a/logback-site/src/site/pages/access.html
+++ b/logback-site/src/site/pages/access.html
@@ -50,16 +50,17 @@
     level of a web-application.
     </p>
 
-    <a name="tomcat"></a>
-		<h1>Logback-access under Tomcat</h1>
+		<h1><a name="tomcat" href="#tomcat">Logback-access under Tomcat</a></h1>
 		
 		<p>To use logback-access with Tomcat, after downloading the
 		logback distribution, place the files
 		<em>logback-core-${project.version}.jar</em> and
 		<em>logback-access-${project.version}.jar</em> under
 		$TOMCAT_HOME/lib/ directory, where $TOMCAT_HOME is the folder
-		where you have installed Tomcat. We have tested logback-access
-		with Tomcat version 6.0.20.
+		where you have installed Tomcat. This version of logback-access
+		has been tested with Tomcat version 7.0.21. It will not work with
+		Tomcat 6.x. However, the target platform for logback-access
+		version 0.9.30 is Tomcat 6.x.
 		</p>
 
     <!--
@@ -157,8 +158,9 @@
     under the URL <code>http://host/yourWebapp/lbAccessStatus</code>
     </p>
     
-    <a name="jetty"></a>
-		<h1>Logback-access under Jetty</h1>
+    
+		<h1><a name="jetty" href="#jetty">Logback-access under
+		Jetty</a></h1>
 
 		<p>After downloading the logback distribution, place the files
 		<em>logback-core-VERSION.jar</em> and
diff --git a/logback-site/src/site/pages/news.html b/logback-site/src/site/pages/news.html
index bdda443..7426181 100644
--- a/logback-site/src/site/pages/news.html
+++ b/logback-site/src/site/pages/news.html
@@ -30,6 +30,11 @@
 
     <h3>... .. , 2011 - Release of version 0.9.31</h3>
 
+    <p>The logback-access module now targets Tomcat 7.x and Jetty 7.x
+    &amp; 8.x as its servlet container platforms. This fixes <a
+    href="http://jira.qos.ch/browse/LBACCESS-17">LBACCESS-17</a>
+    reported by Grzegorz Grzybek.</p>
+
     <p>Investigation of <a
     href="http://jira.qos.ch/browse/LBCORE-224">LBCORE-224</a>
     reported by Cesar Alvarez Nunez points to bug in the JVM rather

http://git.qos.ch/gitweb/?p=logback.git;a=commit;h=958d0a4611b7e10988aa286bf317a0d13468ee6b
http://github.com/ceki/logback/commit/958d0a4611b7e10988aa286bf317a0d13468ee6b

commit 958d0a4611b7e10988aa286bf317a0d13468ee6b
Author: Ceki Gulcu <ceki at qos.ch>
Date:   Fri Sep 30 17:06:54 2011 +0200

    minor edits

diff --git a/logback-site/src/site/pages/manual/layouts.html b/logback-site/src/site/pages/manual/layouts.html
index 7dc55d4..34e9b6b 100644
--- a/logback-site/src/site/pages/manual/layouts.html
+++ b/logback-site/src/site/pages/manual/layouts.html
@@ -1058,8 +1058,8 @@ Wrapped by: org.springframework.BeanCreationException: Error creating bean with
          %xException, only the order of exception output is reversed.
          </p>
 
-         <p>Tomek Nurkiewicz, the author of %rootException converter,
-         documents his creation in a blog entry entitled <a
+         <p>Tomasz Nurkiewicz, the author of %rootException converter,
+         documents his contribution in a blog entry entitled <a
          href="http://nurkiewicz.blogspot.com/2011/09/logging-exceptions-root-cause-first.html">"Logging
          exceptions root cause first"</a>.</p>
         </td>

-----------------------------------------------------------------------

Summary of changes:
 .../ch/qos/logback/access/tomcat/LogbackValve.java |   11 +++++++++--
 logback-site/src/site/pages/access.html            |   14 ++++++++------
 logback-site/src/site/pages/manual/layouts.html    |    4 ++--
 logback-site/src/site/pages/news.html              |    5 +++++
 4 files changed, 24 insertions(+), 10 deletions(-)


hooks/post-receive
-- 
Logback: the generic, reliable, fast and flexible logging framework.


More information about the logback-dev mailing list