I’m trying to log values from my server to a file using logback and only getting an empty file (it’s being created, but nothing gets written to it). This is my scenario code:
val myLogger = org.slf4j.LoggerFactory.getLogger(“myLogger”)
val scn = scenario(“LoginScenario”)
.exec(
chain1
)
.exec(session => {
myLogger.info(session(“userID”).as[String])
session
})
And this is the appender in logback.xml:
/home/user/gatling2/results/myLogs/IDs.log %d{HH:mm:ss.SSS} - %msg falseWhat I have was pieced together from a couple of different (old) posts on here, so I’m not sure what I might be missing or what could be outdated. Any ideas as to what’s going wrong?