In my program on GCS, I have a stream of UDP datagram which I parse using the mavlink_parse_char() function and process it in the way necessary for me.
I need to log all the messages in the same format as the arducopter does.
Tell me please, how can I do this?
Am I understanding correctly that for this I should use the AP_Logger library in my program? What function member of the AP_Logger class should I use?