# login responses to special file

**URL:** <https://community.gatling.io/t/login-responses-to-special-file/624>\
**Category:** Gatling (Open-Source)\
**Created:** [October 17, 2013, 6:47pm UTC](https://community.gatling.io/t/login-responses-to-special-file/624 "2013-10-17T18:47:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alejandro\_De\_Lio](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@Alejandro\_De\_Lio](https://community.gatling.io/u/Alejandro_De_Lio)\
**Post date:** [October 17, 2013, 6:47pm UTC](https://community.gatling.io/t/login-responses-to-special-file/624/1 "2013-10-17T18:47:51Z")

</div>

Hey! How are you doing guys?

I’m trying to log the responses to files. Something like, if I have an http(“request-name”) , then after the run I would have a file with the json response, something like request-name-response.json.  
Is there a simpe way to achieve this? thanks!!!

PS: I tried using this info extractor: (sta, ses, req, res) =\> List(res.getResponseBody)  
but there are two problems:  
1- I would LOVE to have every response in its own file  
2- If the response was too long, then I would get an error message saying that the buffer was not long enough and got only a part of the respnse printed out to the simulation.log file.

Many, many thanks!

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [October 17, 2013, 7:03pm UTC](https://community.gatling.io/t/login-responses-to-special-file/624/2 "2013-10-17T19:03:52Z")

</div>

Important question: do you realize that this will probably hurt the overall performance?

---

<div class="post-metadata">

**Author:** ![Floris\_Kraak](https://avatars.discourse-cdn.com/v4/letter/f/848f3c/32.png) [@Floris\_Kraak](https://community.gatling.io/u/Floris_Kraak)\
**Post date:** [October 18, 2013, 5:30am UTC](https://community.gatling.io/t/login-responses-to-special-file/624/3 "2013-10-18T05:30:52Z")

</div>

That really depends on how big the responses are and how much load it involves, doesn’t it? If you’re not exceeding IO bandwith or disk space limits file writing is actually surprisingly cheap.

Running with full logging of everything can be terribly useful if done carefully.
