How to get logs in gazebo and jmavsim simulators

Hi,
I’m using ubuntu18.04 to build the px4 code for gazebo and jmavsim. I’m stuck with the following issues:

  1. How to get log files in jmavsim simulator.
  2. Where i will get logs in jmavsim simulator.
  3. How to get log files in gazebo simulator.
  4. Where i will get logs in gazebo simulator.

Thank you.