[Logback.xml] How to create additional log in test results folder

774 views
Skip to first unread message

Uladzimir Kazimirchyk

unread,
Nov 5, 2013, 9:33:04 AM11/5/13
to gat...@googlegroups.com
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!

Stéphane Landelle

unread,
Nov 5, 2013, 11:41:51 AM11/5/13
to gat...@googlegroups.com
Hi,

I don't see how to do this, sorry.

Stéphane


2013/11/5 Uladzimir Kazimirchyk <kazim...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages