Ardupilot Log Files

I am looking through the Ardupilot source code for some specifics on how it records data for the Pixhawk. The program uses the PX4 firmware to interact with the Pixhawk, so I suspect it uses the built in sdlog2 functionality.

http://ardupilot.org/dev/docs/learning-ardupilot-introduction.html

However Ardupilot uses a Dataflash system for its logging.

http://ardupilot.org/rover/docs/common-downloading-and-analyzing-data-logs-in-mission-planner.html

Which of these functions is used for logging data in this case?

You need to ask that over at discuss.ardupilot.org