I have created a maven project that will generate a jar file with all my simulations in it and when I run it, the console log level is too high. There is too much unusefull informations for me. Is there a way to configure it in the code ? Here is my code:
import io.gatling.app.Gatling
import io.gatling.core.config.GatlingPropertiesBuilder
import io.gatling.core.config.GatlingConfiguration
object Engine extends App {
val props = new GatlingPropertiesBuilder
if(System.getProperty("resultsFolder") == null){
props.resultsDirectory("results")
}else{
props.resultsDirectory(System.getProperty("resultsFolder"))
}
props.dataDirectory("data")
props.simulationClass(System.getProperty("simulationClass"))
Gatling.fromMap(props.build)
sys.exit()
}
And here is the tree of my directory:
¦ dependency-reduced-pom.xml
¦ pom.xml
¦
+---src
+---main
¦ +---resources
¦ +---scala
¦ +---myPackage
¦ ¦ Engine.scala
¦ ¦
¦ +---simulation
¦ BasicSimulation.scala
¦
+---test
+---resources
¦ application.conf
¦ gatling.conf
¦ logback-test.xml
¦
+---scala
Placeholder.scala
The .config files and logback are the default ones of Gatling.
logback-test.xml
, this part<root level="${LOG_LEVEL}" default="WARN"> <appender-ref ref="CONSOLE" /> </root>
– Dowden