jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r995006 - /jackrabbit/trunk/jackrabbit-core/src/test/resources/logback-test.xml
Date Wed, 08 Sep 2010 12:07:56 GMT
Author: jukka
Date: Wed Sep  8 12:07:56 2010
New Revision: 995006

URL: http://svn.apache.org/viewvc?rev=995006&view=rev
Log:
JCR-2741: Improved logging for session operations

Include the jcr.session and jcr.operation context variables in the log files

Modified:
    jackrabbit/trunk/jackrabbit-core/src/test/resources/logback-test.xml

Modified: jackrabbit/trunk/jackrabbit-core/src/test/resources/logback-test.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/resources/logback-test.xml?rev=995006&r1=995005&r2=995006&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/resources/logback-test.xml (original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/resources/logback-test.xml Wed Sep  8 12:07:56
2010
@@ -20,7 +20,7 @@
   <appender name="file" class="ch.qos.logback.core.FileAppender">
     <file>target/jcr.log</file>
     <encoder>
-      <pattern>%date{HH:mm:ss.SSS} %-5level %-40([%thread] %F:%L) %msg%n</pattern>
+      <pattern>%date{HH:mm:ss.SSS} %-5level %-40([%thread] %F:%L) %msg [%X{jcr.session}
%X{jcr.operation}]%n</pattern>
     </encoder>
   </appender>
 
@@ -33,7 +33,7 @@
       <appender name="FILE-${testname}" class="ch.qos.logback.core.FileAppender">
         <File>target/surefire-reports/${testclass}.log</File>
         <layout class="ch.qos.logback.classic.PatternLayout">
-          <Pattern>%date{HH:mm:ss.SSS} %-5level %-40([%thread] %F:%L) %msg%n</Pattern>
+          <Pattern>%date{HH:mm:ss.SSS} %-5level %-40([%thread] %F:%L) %msg [%X{jcr.session}
%X{jcr.operation}]%n</Pattern>
         </layout>
       </appender>
     </sift>



Mime
View raw message