Is it possible to flush simulation.log content even the gatling process is killed?

As the title says, I bumped into a case that we sometimes need to kill the Gatling process because it affects another simultaneous running test against the target system. And we have to kill all tests but still want to review how Gatling simulation runs before we kill it.
However, seems Gatling only flush content to simulation.log when the script runs all the way till the end successfully.

So, is there a way to force Gatling flush the log even it’s killed? Or we can intercept the log from elsewhere?

However, seems Gatling only flush content to simulation.log when the script runs all the way till the end successfully.

No, it flushes when:

  • its internal buffer is full
  • when Gatling terminates
    Gatling reports generation will still be able to generate partial reports with the reportsOnly option.

I don’t see a point in trying to flush when you kill.

Thanks for the reply, Stéphane.

Just wanna to make sure if that’s achievable. So I can plan ahead when the cases are coming.