Writing system.println data to text files in logs folder.

Former Member
Former Member
I have a ? regarding the text files in logs on the VivoactiveHR for when you use system.println to save data there.

I know that it will allow 2 text files of 5 kb each, but what happens when the 2 files are filled ?
  • Former Member
    Former Member over 9 years ago
    The older lines are lost and only the latest are in the text files.
  • Former Member
    Former Member over 9 years ago
    Thank you, I have never captured enough data to find out what really happens. That is what I suspected that Garmin would do. I still do wish that we were given a lot more space for this data, but it is more a developer thing and not something that most users even know is possible.
  • You have a 5k log file, and when that fills, it's copied as a backup, and the new file starts clean. If it fills again, it over-writes the backup and starts clean again. So the most you can have in the two files is 5k to about 10k.

    Using Sys.printXX is an expensive op (time, etc) on a real watch and is really just a debug tool to be used sparingly...

    Have you considered using the FitContibuter stuff? Start recording and with the data is in the .fit, users can see it as a graph on GC and not have to deal with a the .txt log file?
  • Former Member
    Former Member over 9 years ago
    You have a 5k log file, and when that fills, it's copied as a backup, and the new file starts clean. If it fills again, it over-writes the backup and starts clean again. So the most you can have in the two files is 5k to about 10k.

    Using Sys.printXX is an expensive op (time, etc) on a real watch and is really just a debug tool to be used sparingly...

    Have you considered using the FitContibuter stuff? Start recording and with the data is in the .fit, users can see it as a graph on GC and not have to deal with a the .txt log file?


    I log data when the application starts and once a minute thereafter. In this case .. a FIT file would maybe not be a great option ? I also expect that few will actually use this feature ... but I do. Maybe something for a new version but right now .. not going to happen as my app should go for approval as early as today.

    Each time it is one line of data as below.

    2016/08/26 12:56:09 PM,4,18,22,158,Zone 4