# Where can I see the Response of executed script

**URL:** <https://community.gatling.io/t/where-can-i-see-the-response-of-executed-script/6135>\
**Category:** Gatling (Open-Source)\
**Created:** [June 1, 2021, 8:02pm UTC](https://community.gatling.io/t/where-can-i-see-the-response-of-executed-script/6135 "2021-06-01T20:02:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bharathi](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@bharathi](https://community.gatling.io/u/bharathi)\
**Post date:** [June 1, 2021, 8:02pm UTC](https://community.gatling.io/t/where-can-i-see-the-response-of-executed-script/6135/1 "2021-06-01T20:02:29Z")

</div>

Hi,  
I have recorded a Launch and Login script for my application using Gatling Recorder?(by adding Blacklist) and opened the same using IntelliJ , I know that Response body of recorded script is saved in resources folder,

1. then what about the Response Header is saved?
2. LAter made some changes and ran the script multiple times, where can I see the response body and Header of recently executed script.

---

<div class="post-metadata">

**Author:** ![bharathi](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@bharathi](https://community.gatling.io/u/bharathi)\
**Post date:** [June 3, 2021, 8:26am UTC](https://community.gatling.io/t/where-can-i-see-the-response-of-executed-script/6135/2 "2021-06-03T08:26:02Z")

</div>

Any help?

---

<div class="post-metadata">

**Author:** ![sujin\_sam](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@sujin\_sam](https://community.gatling.io/u/sujin_sam)\
**Post date:** [June 22, 2021, 7:24am UTC](https://community.gatling.io/t/where-can-i-see-the-response-of-executed-script/6135/3 "2021-06-22T07:24:51Z")

</div>

Hello  
create **logback.xml** under resources and the below content

_\<?xml version="1.0" encoding="UTF-8"?\>_

_INFO_  
_ACCEPT_  
_DENY_  
  
  
_%d{HH:mm:ss.SSS} [%-5level] %logger{15} - %msg%n%rEx_  
  
_false_

_TRACE_  
_ACCEPT_  
_DENY_  
  
 _target/log-${byDay}.txt_   
_true_  
  
_%d{HH:mm:ss.SSS} [%-5level] %logger{15} - %msg%n%rEx_

if you are using Maven, leave the above content as it is  
if you are using Gradle , modify the **file** tag as below  
 _build/log-${byDay}.txt_

now if you run the test, the trace logs i.e the request, the response including headers will be written into file **log\_{timestamp}.txt** under _**target(maven)**_ or _**build(gradle)**_ folder

make sure to comment the line as below, when you go for running a load test or else you will end up with a huge file  
when you comment it, the log file wont be created

Thanks

---

<div class="post-metadata">

**Author:** ![sujin\_sam](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@sujin\_sam](https://community.gatling.io/u/sujin_sam)\
**Post date:** [June 22, 2021, 7:27am UTC](https://community.gatling.io/t/where-can-i-see-the-response-of-executed-script/6135/4 "2021-06-22T07:27:28Z")

</div>

link to gatling doc → [https://gatling.io/docs/gatling/reference/current/general/debugging/](https://gatling.io/docs/gatling/reference/current/general/debugging/)
