Commits

Samuel Le Berrigaud committed 773d091

- Adding a log4j configuration, to enable visualisation of SQL statements, during the tests, and when running the Refapp.

Comments (0)

Files changed (2)

ao-tutorial-stage4/pom.xml

         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-simple</artifactId>
+            <artifactId>slf4j-log4j12</artifactId>
             <version>1.6.2</version>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>log4j</groupId>
+            <artifactId>log4j</artifactId>
+            <version>1.2.16</version>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 
     <build>
                         </pluginArtifact>
                     </pluginArtifacts>
                     <productVersion>${refapp.version}</productVersion>
+                    <log4jProperties>src/test/resources/log4j.properties</log4jProperties>
                 </configuration>
             </plugin>
         </plugins>

ao-tutorial-stage4/src/test/resources/log4j.properties

+log4j.rootLogger = WARN, console
+
+log4j.appender.console = org.apache.log4j.ConsoleAppender
+log4j.appender.console.layout = org.apache.log4j.PatternLayout
+log4j.appender.console.layout.ConversionPattern = %5p - %60.60c - %m%n
+
+log4j.logger.com.atlassian.plugin.osgi = WARN, console
+log4j.additivity.com.atlassian.plugin.osgi = false
+
+log4j.logger.com.atlassian.activeobjects = INFO, console
+log4j.additivity.com.atlassian.activeobjects = false
+
+log4j.logger.net.java.ao = INFO, console
+log4j.additivity.net.java.ao = false
+
+log4j.logger.net.java.ao.sql = DEBUG, console
+log4j.additivity.net.java.ao.sql = false
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.