How to store label data(x,y position)

Hi i have a question
i build up indoor location app and test in my office
when i debug my code i can see the list of x,y,orientation data on my mac. i want to store that data collected when i don’t connect my iPhone to mac. how can i do to collect the position data? i want to analyze it using matlab or python

this data
x: 0.93, y: 2.19, orientation: 349
x: 0.93, y: 2.19, orientation: 348
x: 0.93, y: 2.19, orientation: 348
x: 0.93, y: 2.19, orientation: 348
x: 0.93, y: 2.19, orientation: 348
x: 0.93, y: 2.19, orientation: 348
x: 0.93, y: 2.19, orientation: 348