Menu

#2175 Launcher - button to create zip folder with latest log files

2019.2
New
nobody
Launcher (39)
Low
2020-01-05
2020-01-03
No

On forums there is a lot of user reports with information about bad FG, Aircraft, Scenery behaviour. If there are inexperienced users it is problematic to get information from them about log files (don't know the folder location, don't know how to get there, paste whole log into the forum, paste only small part). It could be useful to have some point in the Launcher to crate e.g. zip file with the log files that are in the FG_HOME folder. So next time when user reports error, it could be easy to say to use this function and share the archive via some file sharing solution.

Solution:

  • implement in the Launcher (if someone is using commandline to run FG it can easily find this files anyway) function to get log archive - additional entry in menu (***) 'Export logs'.
  • dialog for confirmation with additional information that logs could contain information about username, home folder and get agreement to export this data
  • procedure to get all log files *.log from FG_HOME and archive it in file e.g, <datetime>_flightgear_log.zip</datetime>
  • select place to store the file with default's to Desktop folder (in Windows) or Home folder (in Linux)

Discussion

  • Slawek Mikula

    Slawek Mikula - 2020-01-03

    I can work on this if the implementation is agreed. One thing is needed, ability to zip files. Simgear/io/untar.cxx have implementation to unzip files. There is zlib implemetation but it would be more useful (especially for windows users) to use zip format.

     
  • James Turner

    James Turner - 2020-01-05

    Yes it's a good idea indeed. I think you can find some public-domain code in 'mini-zip' to create a .zip file, that's where the unzip.c implementation comes from.

     
  • Slawek Mikula

    Slawek Mikula - 2020-01-05

    Ok, thanks. I'll look into it.

     

Log in to post a comment.

MongoDB Logo MongoDB