Config changes to log4j and a minor code change

This commit is contained in:
Alex Theedom 2016-07-20 23:36:12 +01:00
parent 532d4ad8b4
commit 4bc3153fc0
3 changed files with 5 additions and 6 deletions

View File

@ -12,8 +12,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>7</source>
<target>7</target>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>

View File

@ -99,7 +99,7 @@ public class RestAssuredTest {
}
private static String getEventJson() {
return Util.inputStreamToString(new RestAssuredTest().getClass()
return Util.inputStreamToString(RestAssuredTest.class
.getResourceAsStream("/event_0.json"));
}

View File

@ -1,12 +1,11 @@
## Logger configure file for myproject
log.dir=C:/ProgramData/radixbase/
## Logger configure
datestamp=yyyy-MM-dd HH:mm:ss
log4j.rootLogger=TRACE, file, console
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.maxFileSize=1GB
log4j.appender.file.maxBackupIndex=5
log4j.appender.file.File=log/mydebug.log
log4j.appender.file.File=log/rest-assured.log
log4j.appender.file.threshold=TRACE
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{${datestamp}} %5p: [%c] - %m%n