Acknowledged

Logging to /logs/.txt not working on Garmin Edge 540

Debugging on device I am using Sys.println() to log to a log file in the /logs/ folder.

The log file I have put in there is called <app_name>.txt.  It is identical to the one that I have, and the same as I have working properly on an Edge 830.

Do I need to do something different in x40 devices?

I have tried in debug and release builds, and with the log file name in both upper and lower case.

  • True (I think) for apps installed through CIQ store, but doesn't seem to be the case for sideloaded apps.  At least not that I can find.
    Bizarrely earlier it was renaming "aerosensor_acs.prg" to "101DB862.prg" but now I am trying to replicate it is no longer doing it.  I have no idea why not honestly.  

  • The key to this, as you probably know, is to match the .txt file name exactly to the .prg file name for the app you want to log. The easiest way to check the PRG file name, in my opinion, is to look in the <apps> section of the GarminDevice.xml file, which should be in the Garmin folder on the device. This will list all installed apps by name and list the PRG file name.

  • Update - I notice that no .prg file exists on the 540 in the APPS folder.  If I search for .prg I found "101DB862.prg" in the "Apps/Media" folder. If i create a file called "101DB862.txt" in the "LOGS" folder it works.

    This isn't half painful..