Hi,
i'm trying to save request/response info in additional log file so i can check what's going on during test.
I figured out how to add file appender and it writes new log file successfully.
The question is -- how to tell logback to save file in the folder with a generated test report.
i.e.
logback-test.xml contains the following setup:
<property name="TARGET" value="target/gatling/results"/>
<timestamp key="TIMESTAMP" datePattern="yyyyMMdd'T'HHmmss"/>
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>
${TARGET}/gatling_additional-${TIMESTAMP}.log
</file>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%-5level] %logger{15} - %msg%n%rEx</pattern>
<immediateFlush>false</immediateFlush>
</encoder>
</appender>
and the test results are saved in
target/gatling/results/test-name-[timestamp] folder
so actually my additional log file will be one level above the tests results
Is there any way to put additional log under the same directory (target/gatling/results/test-name-[timestamp])?
Thanks!