Replace Console Logging with a File
-
Yes C:\Program Files\TripleA is the default
C:\Program Files\ is a somehow restricted system directory.
Yes Windows tries to protect itself. -
It sounded like if an application were to try to write to program files then the file would be redirected to the appdata folder. It sounds like this was perhaps misadvertised and instead. @TheDog , if you install to your home folder, I presume you would see the log file show up, would you mind verifying that?
-
Installed latest 2.6.22481 in my home folder, yes it is there.
A few lines from it
9474 23:07:15.212 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: Neusch. DH's Ultimate FFA @ file:///C:/Users/RYZEN/triplea/downloadedMaps/neuschwabenland-master/map/games/Neuschwab_Naval_Ed.xml
9476 23:07:15.214 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: Battle of Aventurica @ jar:file:/C:/Users/RYZEN/triplea/downloadedMaps/battle_of_aventurica-master.zip!/battle_of_aventurica-master/map/games/Battle_of_Aventurica.xml
9476 23:07:15.214 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: Test1 @ jar:file:/C:/Users/RYZEN/triplea/downloadedMaps/map_making_tutorial-master.zip!/map_making_tutorial-master/map/games/Test1.xml
9476 23:07:15.214 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: TAW_Roman_Campaign @ file:///C:/Users/RYZEN/triplea/downloadedMaps/total_ancient_war-master/map/games/TAW_Roman_Campaign.xml -
It looks like we indeed need to specify a users home folder explicitly when writing files on windows 10 or the file write will fail.
This is a bit disappointing as it was hoped that the file would either land in the installation folder of TripleA or be written to a default app-data location automatically.
Be what it may, it should be possible to write the log to users home folder into the 'triplea' folder.
-
@LaFayette Dont forget to add triplea.log to the list of files to uninstall.