You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2014/09/04 15:58:47 UTC

svn commit: r1622477 - in /myfaces/tobago/branches/tobago-3.0.x: tobago-core/src/test/resources/ tobago-example/tobago-example-addressbook/src/main/resources/ tobago-example/tobago-example-addressbook/src/main/webapp/WEB-INF/ tobago-example/tobago-exam...

Author: lofwyr
Date: Thu Sep  4 13:58:47 2014
New Revision: 1622477

URL: http://svn.apache.org/r1622477
Log:
logging mdc

Modified:
    myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/test/resources/logback-test.xml
    myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/resources/logback.xml
    myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/webapp/WEB-INF/web.xml
    myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-blank/src/main/resources/logback.xml
    myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/WEB-INF/web.xml
    myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-experimental/src/main/resources/logback.xml
    myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-portlet/src/main/resources/logback.xml
    myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-sandbox/src/main/resources/logback.xml
    myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-test/src/main/resources/logback.xml
    myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-test/src/main/webapp/WEB-INF/web.xml

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/test/resources/logback-test.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/test/resources/logback-test.xml?rev=1622477&r1=1622476&r2=1622477&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/test/resources/logback-test.xml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/test/resources/logback-test.xml Thu Sep  4 13:58:47 2014
@@ -24,7 +24,7 @@
 
   <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
     <encoder>
-      <pattern>%date{ISO8601} [%-16.16thread] %-5level %-50.50logger{50}:%-20.20method:%-4.4line - %msg%n</pattern>
+      <pattern>%date{ISO8601} [%-16.16thread] %-5level %-50.50logger{50}:%-20.20method:%-4.4line [%mdc] %msg%n</pattern>
     </encoder>
   </appender>
 

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/resources/logback.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/resources/logback.xml?rev=1622477&r1=1622476&r2=1622477&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/resources/logback.xml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/resources/logback.xml Thu Sep  4 13:58:47 2014
@@ -24,7 +24,7 @@
 
   <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
     <encoder>
-      <pattern>%date{ISO8601} [%-16.16thread] %-5level %-50.50logger{50}:%-20.20method:%-4.4line - %msg%n</pattern>
+      <pattern>%date{ISO8601} [%-16.16thread] %-5level %-50.50logger{50}:%-20.20method:%-4.4line [%mdc] %msg%n</pattern>
     </encoder>
   </appender>
 

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/webapp/WEB-INF/web.xml?rev=1622477&r1=1622476&r2=1622477&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/webapp/WEB-INF/web.xml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/webapp/WEB-INF/web.xml Thu Sep  4 13:58:47 2014
@@ -50,6 +50,15 @@
     <param-value>true</param-value>
   </context-param>
 
+  <filter>
+    <filter-name>LoggingMdcFilter</filter-name>
+    <filter-class>org.apache.myfaces.tobago.internal.webapp.LoggingMdcFilter</filter-class>
+  </filter>
+  <filter-mapping>
+    <filter-name>LoggingMdcFilter</filter-name>
+    <url-pattern>/*</url-pattern>
+  </filter-mapping>
+
   <!-- servlet -->
 
   <servlet>

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-blank/src/main/resources/logback.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-blank/src/main/resources/logback.xml?rev=1622477&r1=1622476&r2=1622477&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-blank/src/main/resources/logback.xml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-blank/src/main/resources/logback.xml Thu Sep  4 13:58:47 2014
@@ -24,7 +24,7 @@
 
   <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
     <encoder>
-      <pattern>%date{ISO8601} [%-16.16thread] %-5level %-50.50logger{50}:%-20.20method:%-4.4line - %msg%n</pattern>
+      <pattern>%date{ISO8601} [%-16.16thread] %-5level %-50.50logger{50}:%-20.20method:%-4.4line [%mdc] %msg%n</pattern>
     </encoder>
   </appender>
 

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/WEB-INF/web.xml?rev=1622477&r1=1622476&r2=1622477&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/WEB-INF/web.xml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/WEB-INF/web.xml Thu Sep  4 13:58:47 2014
@@ -123,6 +123,15 @@
   </listener>
 -->
 
+  <filter>
+    <filter-name>LoggingMdcFilter</filter-name>
+    <filter-class>org.apache.myfaces.tobago.internal.webapp.LoggingMdcFilter</filter-class>
+  </filter>
+  <filter-mapping>
+    <filter-name>LoggingMdcFilter</filter-name>
+    <url-pattern>/*</url-pattern>
+  </filter-mapping>
+
   <!-- FacesServlet -->
 
   <servlet>

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-experimental/src/main/resources/logback.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-experimental/src/main/resources/logback.xml?rev=1622477&r1=1622476&r2=1622477&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-experimental/src/main/resources/logback.xml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-experimental/src/main/resources/logback.xml Thu Sep  4 13:58:47 2014
@@ -24,7 +24,7 @@
 
   <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
     <encoder>
-      <pattern>%date{ISO8601} [%-16.16thread] %-5level %-50.50logger{50}:%-20.20method:%-4.4line - %msg%n</pattern>
+      <pattern>%date{ISO8601} [%-16.16thread] %-5level %-50.50logger{50}:%-20.20method:%-4.4line [%mdc] %msg%n</pattern>
     </encoder>
   </appender>
 

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-portlet/src/main/resources/logback.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-portlet/src/main/resources/logback.xml?rev=1622477&r1=1622476&r2=1622477&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-portlet/src/main/resources/logback.xml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-portlet/src/main/resources/logback.xml Thu Sep  4 13:58:47 2014
@@ -24,7 +24,7 @@
 
   <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
     <encoder>
-      <pattern>%date{ISO8601} [%-16.16thread] %-5level %-50.50logger{50}:%-20.20method:%-4.4line - %msg%n</pattern>
+      <pattern>%date{ISO8601} [%-16.16thread] %-5level %-50.50logger{50}:%-20.20method:%-4.4line [%mdc] %msg%n</pattern>
     </encoder>
   </appender>
 

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-sandbox/src/main/resources/logback.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-sandbox/src/main/resources/logback.xml?rev=1622477&r1=1622476&r2=1622477&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-sandbox/src/main/resources/logback.xml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-sandbox/src/main/resources/logback.xml Thu Sep  4 13:58:47 2014
@@ -24,7 +24,7 @@
 
   <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
     <encoder>
-      <pattern>%date{ISO8601} [%-16.16thread] %-5level %-50.50logger{50}:%-20.20method:%-4.4line - %msg%n</pattern>
+      <pattern>%date{ISO8601} [%-16.16thread] %-5level %-50.50logger{50}:%-20.20method:%-4.4line [%mdc] %msg%n</pattern>
     </encoder>
   </appender>
 

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-test/src/main/resources/logback.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-test/src/main/resources/logback.xml?rev=1622477&r1=1622476&r2=1622477&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-test/src/main/resources/logback.xml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-test/src/main/resources/logback.xml Thu Sep  4 13:58:47 2014
@@ -24,7 +24,7 @@
 
   <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
     <encoder>
-      <pattern>%date{ISO8601} [%-16.16thread] %-5level %-50.50logger{50}:%-20.20method:%-4.4line - %msg%n</pattern>
+      <pattern>%date{ISO8601} [%-16.16thread] %-5level %-50.50logger{50}:%-20.20method:%-4.4line [%mdc] %msg%n</pattern>
     </encoder>
   </appender>
 

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-test/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-test/src/main/webapp/WEB-INF/web.xml?rev=1622477&r1=1622476&r2=1622477&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-test/src/main/webapp/WEB-INF/web.xml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-test/src/main/webapp/WEB-INF/web.xml Thu Sep  4 13:58:47 2014
@@ -52,6 +52,15 @@
     <param-value>true</param-value>
   </context-param>
 
+  <filter>
+    <filter-name>LoggingMdcFilter</filter-name>
+    <filter-class>org.apache.myfaces.tobago.internal.webapp.LoggingMdcFilter</filter-class>
+  </filter>
+  <filter-mapping>
+    <filter-name>LoggingMdcFilter</filter-name>
+    <url-pattern>/*</url-pattern>
+  </filter-mapping>
+
   <servlet>
     <servlet-name>FacesServlet</servlet-name>
     <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>