# less verbose logging?

**URL:** <https://community.gatling.io/t/less-verbose-logging/397>\
**Category:** Gatling (Open-Source)\
**Created:** [May 29, 2013, 12:21am UTC](https://community.gatling.io/t/less-verbose-logging/397 "2013-05-29T00:21:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Price](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@Chris\_Price](https://community.gatling.io/u/Chris_Price)\
**Post date:** [May 29, 2013, 12:21am UTC](https://community.gatling.io/t/less-verbose-logging/397/1 "2013-05-29T00:21:25Z")

</div>

Hi,

Apologies because I’m sure this is more of a scala n00b question than a Gatling-specific question. If so, if anyone could even just give me a few keywords to google for, I’m happy to RTFM. I just can’t (so far) seem to find the FM.

When I run my sims I get a ton of useful logging output, and then a ton of not-as-useful stuff like `DEBUG c.n.h.c.p.n.NettyAsyncHttpProvider`.

I notice that log4j is a transitive dep of the project; is this as simple as adding a log4j.properties to my classpath and configuring that stuff out of it? Or is there a more scala-y way to approach this?

Thanks!  
Chris

---

<div class="post-metadata">

**Author:** ![Nicolas\_R](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@Nicolas\_R](https://community.gatling.io/u/Nicolas_R)\
**Post date:** [May 29, 2013, 12:24am UTC](https://community.gatling.io/t/less-verbose-logging/397/2 "2013-05-29T00:24:11Z")

</div>

In the conf/ folder, there is a logback.xml file.

Does yours look like this one ? [https://github.com/excilys/gatling/blob/master/gatling-bundle/src/main/assembly/assembly-structure/conf/logback.xml](https://github.com/excilys/gatling/blob/master/gatling-bundle/src/main/assembly/assembly-structure/conf/logback.xml)  
If not, could you try commenting the loggers at the DEBUG level ?

cheers  
Nicolas

---

<div class="post-metadata">

**Author:** ![Chris\_Price](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@Chris\_Price](https://community.gatling.io/u/Chris_Price)\
**Post date:** [May 29, 2013, 12:27am UTC](https://community.gatling.io/t/less-verbose-logging/397/3 "2013-05-29T00:27:52Z")

</div>

Ah. I’m using gatling as a dependency (so, calling into the jar from my own code). I presume I can just put an override version of logback.xml somewhere? Just need to find out where. Thanks, I’ll poke around and see if I can find that.

---

<div class="post-metadata">

**Author:** ![Chris\_Price](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@Chris\_Price](https://community.gatling.io/u/Chris_Price)\
**Post date:** [May 29, 2013, 12:38am UTC](https://community.gatling.io/t/less-verbose-logging/397/4 "2013-05-29T00:38:18Z")

</div>

Got it working by adding a logback.xml to my classpath, with the contents that you pointed me at. Much better. Thank you, Nicolas!

---

<div class="post-metadata">

**Author:** ![Nicolas\_R](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@Nicolas\_R](https://community.gatling.io/u/Nicolas_R)\
**Post date:** [May 29, 2013, 9:41am UTC](https://community.gatling.io/t/less-verbose-logging/397/5 "2013-05-29T09:41:36Z")

</div>

Glad to here that.

---

<div class="post-metadata">

**Author:** ![Anupama\_Shetty](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@Anupama\_Shetty](https://community.gatling.io/u/Anupama_Shetty)\
**Post date:** [March 10, 2014, 11:37pm UTC](https://community.gatling.io/t/less-verbose-logging/397/6 "2014-03-10T23:37:23Z")

</div>

Hi,

I am trying to achieve lesser verbose logging as well as last time I ran my performance test for 8hrs, jenkins ran into memory issues and job had to be killed. I can no longer access “[https://github.com/excilys/gatling/blob/master/gatling-bundle/src/main/assembly/assembly-structure/conf/logback.xml](https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fexcilys%2Fgatling%2Fblob%2Fmaster%2Fgatling-bundle%2Fsrc%2Fmain%2Fassembly%2Fassembly-structure%2Fconf%2Flogback.xml&sa=D&sntz=1&usg=AFQjCNE5C3Va8EQIiUUt_PrHJUCStYaDrg)” file, Can you please post the contents of this file directly here for reference?

I tried by completly commenting out the contents of logback.xml file but that did not help and I still see details being added to simulation.log. I am looking for a logging config just enough to view the final statistics while hiding the details of every single request made during test runs. Any suggestions?

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:** [March 11, 2014, 8:57am UTC](https://community.gatling.io/t/less-verbose-logging/397/7 "2014-03-11T08:57:46Z")

</div>

Hi,

How could logging (that usually goes on the console or a file) possibly be related to a memory issue?  
Your problem is probably related to the reports generation. You then have to increase the heap size.

Note that we’ve released Gatling 1.5.4, that ships a fix for properly overriding JVM args on the gatling-maven-plugin.  
[https://github.com/excilys/gatling/wiki/Changelog](https://github.com/excilys/gatling/wiki/Changelog)
