merlimat commented on a change in pull request #610: Redirect unit tests logs 
to file
URL: https://github.com/apache/incubator-pulsar/pull/610#discussion_r130671094
 
 

 ##########
 File path: pom.xml
 ##########
 @@ -557,10 +596,17 @@ flexible messaging model and an intuitive client 
API.</description>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
-        <version>2.19.1</version>
         <configuration>
           <argLine> -Xmx2G -XX:MaxDirectMemorySize=8G
-            -Dio.netty.leakDetectionLevel=advanced</argLine>
+            -Dio.netty.leakDetectionLevel=advanced
+            -Dorg.slf4j.simpleLogger.showDateTime=true
+            -Dorg.slf4j.simpleLogger.log.org.apache.zookeeper=off
+            -Dorg.slf4j.simpleLogger.log.org.apache.bookkeeper=off
+            -Dorg.slf4j.simpleLogger.log.org.apache.bookkeeper.mledger=info
 
 Review comment:
   There is one file for each test. For example: 
   
`managed-ledger/target/surefire-reports/org.apache.bookkeeper.mledger.impl.ManagedLedgerBkTest-output.txt`
   
   In the Jenkins build, you can follow the link on each failed test and it 
will show the log for just the specific test. For example:
   
https://builds.apache.org/job/pulsar-pull-request/org.apache.pulsar$pulsar-broker/5/testReport/junit/org.apache.pulsar.client.api/SimpleProducerConsumerTest/testSendCallBack/
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to