Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    Replace Console Logging with a File

    Development
    3
    25
    1481
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TheDog
      TheDog @Panther last edited by

      Yes C:\Program Files\TripleA is the default

      C:\Program Files\ is a somehow restricted system directory.
      Yes Windows tries to protect itself.

      1 Reply Last reply Reply Quote 0
      • LaFayette
        LaFayette Admin last edited by

        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?

        1 Reply Last reply Reply Quote 0
        • TheDog
          TheDog last edited by

          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

          1 Reply Last reply Reply Quote 0
          • LaFayette
            LaFayette Admin last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • TheDog
              TheDog last edited by

              @LaFayette Dont forget to add triplea.log to the list of files to uninstall.

              1 Reply Last reply Reply Quote 0
              • 1
              • 2
              • 2 / 2
              • First post
                Last post
              Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums