Forwarding QGroundControl Logs to 3rd party program

Hello, I’m trying to allow a third party program control the calibration processes for QGroundControl. To do this I need some way to output the QGroundControl Console logs as well as send commands to Qgroundcontrol to start the calibration process. Does anyone have any advice or suggestions on how to accomplish this?