loadtest4j / loadtest4j-gatling

Gatling driver for loadtest4j.
MIT License
3 stars 0 forks source link

Silence the Gatling logging #2

Closed chriskilding closed 6 years ago

chriskilding commented 6 years ago

Silence the Gatling logging.

Also stop other unwanted behaviour related to logging: we can reduce the amount of data printed in non-SLF4J prints as well.

Optionally provide a boolean toggle in the driver config, to let users decide to turn it back on.

chriskilding commented 6 years ago

We cannot silence the Gatling logging that goes via SLF4J because we cannot predict which concrete logging driver the consuming application will use.

Furthermore, even if we could detect the driver, we shouldn’t put SLF4J Driver config in the library jar, because this will cause a clash with the users own logging config file.

For the same reason we cannot include gatling.conf in the library jar (which would help to silence the non-SLF4J logging) - the user may well want to configure Gatling via those conf files.

All we can really do on this front is provide a “how to disable Gatling logging” section in the README.

Note that Gatling pulls Logback by default, so our SLF4J disabling example should be presented as a logback.xml example.