LOG FILE SIZE / Data Field Writes

I'm writing a cool little data field to track the ratio of paved to dirt on my mixed-terrain rides. Written for touch screen capable Edge devices like the 830/1030 class... just tap on the section of the screen as you transition from one to the other.

I'd also like to record WHERE these transitions occur to later annotate a map (GPS locations) or just create a cue sheet (Distance from Start). Writing to the FIT file doesn't seem like it would help for this. The log file seems best. But I can't find the log file size limits. Does that vary by device? How many lines with about 30 characters per line? I can keep track of the line count in the data field so the user knows when they are filling up the log file and will start to lose data.

Also, if I understand how it works... at the max size, the device saves the log file and starts a new one. Once the new one also fills up, it deletes the old one. So worst case, if your last write filled up the 2nd file, you'll really only have a single file's worth of data, not two files worth? I know LOG files aren't meant to capture useful activity data, but I don't know a better method.

  • It's 8k, at which time the txt becomes a bak file, so between the two you got about 16k. Number of lines isn't used.  It's number of bytes.  Also, when you start and app, the file could be half full from the last time the app was run.

    The txt file must be pre-created, and use the name of the .prg file, which with a sideload is easy to find.  But for apps that are downloaded, it's an 8 character name generated by the store.

  • Got it... so say the log file is already almost full... that is another scenario where you can really only count on having 8K worth of useful data at the end of the ride. So 30 chars/line... I can count on approx 250 entries/transitions recorded. That is GREAT. Thanks Jim.