TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    Replace Console Logging with a File

    Scheduled Pinned Locked Moved Development
    25 Posts 3 Posters 4.3k Views 2 Watching
    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.
    • TheDogT Online
      TheDog
      last edited by

      Its 12:26 here in the UK, Im off to bed, I will try again tomorrow, unless someone else has nailed it.

      https://forums.triplea-game.org/tags/thedog
      https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

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

        474 is the latest. Hmm, that's a small problem if it's not showing up. I have a suspicion the logger file is not being packaged with the game. I'll check that out, hopefully that is the missing piece. Thanks for your checks so far @TheDog 🙂

        PantherP 1 Reply Last reply Reply Quote 0
        • PantherP Offline
          Panther Admin Moderators @LaFayette
          last edited by Panther

          @LaFayette On my Windows10 the triplea.log file is - as usual - in the TripleA installation folder (22477). I use custom installation folders however.

          Don't always trust TripleA when it comes to rules questions. Know the rules before you start … and better check what TripleA has done.

          LaFayetteL 1 Reply Last reply Reply Quote 0
          • TheDogT Online
            TheDog
            last edited by TheDog

            For reference, I am a default installer.

            https://forums.triplea-game.org/tags/thedog
            https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

            1 Reply Last reply Reply Quote 0
            • LaFayetteL Offline
              LaFayette Admin @Panther
              last edited by

              @Panther 'As usual' surprises me as the log file is new. Is this the installation log file? Sorry to be a bit confused, is 'as usual' referring to the log file being written to a usual location?

              Could you share the first dozen lines of that log file @Panther or let us know if it looks like an application log or an installation log?

              PantherP 1 Reply Last reply Reply Quote 0
              • PantherP Offline
                Panther Admin Moderators @LaFayette
                last edited by Panther

                @LaFayette
                Sorry for the confusion. I am used to the fact that the enginge creates log-files in the installation directory. I was referring to the error.log file.

                These are the first lines of the triplea.log-file:

                297  15:09:59.314 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Classic @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_classic-master.zip!/world_war_ii_classic-master/map/games/classic.xml
                299  15:09:59.316 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Global 1942 2nd Edition @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_global-master.zip!/world_war_ii_global-master/map/games/ww2global42_2nd_edition.xml
                299  15:09:59.316 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Pacific 1940 2nd Edition @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_pacific-master.zip!/world_war_ii_pacific-master/map/games/ww2pac40_2nd_edition.xml
                299  15:09:59.316 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II v5 1942 Second Edition @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_v5_1942-master.zip!/world_war_ii_v5_1942-master/map/games/WW2v5_1942_2nd.xml
                299  15:09:59.316 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: 0 @ jar:file:/C:/Users/dh/triplea/downloadedMaps/0.zip!/games/0.xml
                299  15:09:59.316 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Revised @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_revised-master.zip!/world_war_ii_revised-master/map/games/ww2v2.xml
                299  15:09:59.316 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Global 1940 2nd Edition with Combat Move First @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_global-master.zip!/world_war_ii_global-master/map/games/ww2global40_2ndEd_move1st.xml
                299  15:09:59.316 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II v3 1941 @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_v3-master.zip!/world_war_ii_v3-master/map/games/WW2v3-1941.xml
                299  15:09:59.316 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: WW2v4 Six Army Free For All v2 @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_v4-master.zip!/world_war_ii_v4-master/map/games/WW2v4_Six_Army_Free_For_All_v2.xml
                300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: WW2 Path to Victory @ jar:file:/C:/Users/dh/triplea/downloadedMaps/ww2_path_to_victory-master.zip!/ww2_path_to_victory-master/map/games/ww2_path_to_victory.xml
                300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Europe 1940 Original @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_europe-master.zip!/world_war_ii_europe-master/map/games/ww2eur40.xml
                300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Global 1940 Canadian Mod with Combat Move First @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_global-master.zip!/world_war_ii_global-master/map/games/G40CanadianMod.xml
                300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: WWII Europe 1940 Original SeaLion-Balanced @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_europe-master.zip!/world_war_ii_europe-master/map/games/ww2eur40_veqryn_balanced.xml
                300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Classic 3rd Edition @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_classic-master.zip!/world_war_ii_classic-master/map/games/classic_3rd_edition.xml
                300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: Classic: Iron Blitz 3rd Edition @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_classic-master.zip!/world_war_ii_classic-master/map/games/iron_blitz.xml
                300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Global 1940 Balanced Mod3 with Combat Move First @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_global-master.zip!/world_war_ii_global-master/map/games/ww2global40_balanced_move1st.xml
                300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Global 1940 2nd Edition @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_global-master.zip!/world_war_ii_global-master/map/games/ww2global40_2nd_edition.xml
                300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II v3 1942 @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_v3-master.zip!/world_war_ii_v3-master/map/games/WW2v3-1942.xml
                300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II v4 @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_v4-master.zip!/world_war_ii_v4-master/map/games/WW2v4.xml
                300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II v6 1941 @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_v6_1941-master.zip!/world_war_ii_v6_1941-master/map/games/WW2v6_1941.xml
                300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: WWII Pacific 1940 Original J1-Balanced @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_pacific-master.zip!/world_war_ii_pacific-master/map/games/ww2pac40_balanced_veqryn.xml
                300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Revised LHTR @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_revised-master.zip!/world_war_ii_revised-master/map/games/lhtr.xml
                301  15:09:59.318 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II v5 1942 SE TR @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_v5_1942-master.zip!/world_war_ii_v5_1942-master/map/games/WW2v5_1942_2nd_TR.xml
                301  15:09:59.318 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Pacific 1940 Original @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_pacific-master.zip!/world_war_ii_pacific-master/map/games/ww2pac40.xml
                301  15:09:59.318 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: Ozteas 1941 Global Setup @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_global-master.zip!/world_war_ii_global-master/map/games/Ozteas_1941_Global_Setup.xml
                301  15:09:59.318 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Global 1940 Original @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_global-master.zip!/world_war_ii_global-master/map/games/ww2global40.xml
                301  15:09:59.318 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Europe 1940 2nd Edition @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_europe-master.zip!/world_war_ii_europe-master/map/games/ww2eur40_2nd_edition.xml
                301  15:09:59.318 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Global 1940 Balanced Mod3 @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_global-master.zip!/world_war_ii_global-master/map/games/ww2global40_balanced.xml
                301  15:09:59.318 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: WW2v4 Six Army Free For All @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_v4-master.zip!/world_war_ii_v4-master/map/games/WW2v4_Six_Army_Free_For_All.xml
                
                

                Don't always trust TripleA when it comes to rules questions. Know the rules before you start … and better check what TripleA has done.

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

                  Thanks @Panther , that is the application log file, that is the one we were looking for!

                  Okay, is it the case that (?):

                  • if you install TripleA to the default folder, it does not generate a log file,
                  • if you install TripleA to a custom location, then it does?
                  PantherP 1 Reply Last reply Reply Quote 0
                  • PantherP Offline
                    Panther Admin Moderators @LaFayette
                    last edited by Panther

                    @LaFayette

                    It looks like. On my system the installer wants to install into "C:\Program Files\TripleA".
                    I am using "C:\Games\TripleA" instead.

                    C:\Program Files\ is a somehow restricted system directory.

                    Don't always trust TripleA when it comes to rules questions. Know the rules before you start … and better check what TripleA has done.

                    TheDogT 1 Reply Last reply Reply Quote 0
                    • TheDogT Online
                      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.

                      https://forums.triplea-game.org/tags/thedog
                      https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                      1 Reply Last reply Reply Quote 0
                      • LaFayetteL Offline
                        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
                        • TheDogT Online
                          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

                          https://forums.triplea-game.org/tags/thedog
                          https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                          1 Reply Last reply Reply Quote 0
                          • LaFayetteL Offline
                            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
                            • TheDogT Online
                              TheDog
                              last edited by

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

                              https://forums.triplea-game.org/tags/thedog
                              https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                              1 Reply Last reply Reply Quote 0

                              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                              With your input, this post could be even better 💗

                              Register Login
                              • 1
                              • 2
                              • 2 / 2
                              • First post
                                Last post
                              Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums