Is there a way to change the Open Rails log file location?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • E444-014
    New Member
    • Nov 2015
    • 6
    • Italy
    • MSOR

    #1

    Is there a way to change the Open Rails log file location?

    Hello everyone,
    by default, Open Rails creates and writes to a log file called OpenRailsLog.txt, and it places this on the desktop, so I kindly ask you if it is possible to know what is the key inside the Windows registry, to insert or modify to indicate to OR a new position where to write the OpenRailsLog.txt log file instead of the desktop, I had read it somewhere but I can no longer find the instructions, it also seems to me that it is also possible to change its name.
    Thank you in advance.

    Best regards,
    Sergio.​
  • R. Steele
    3500 Post Veteran

    • Feb 2013
    • 3928
    • known universe
    • ORTS

    #2
    I do not advise going into the registry. That said here's an image of the key you will need to add to give OR the option of writing the log to a specific path.

    OR_Registry.jpg
    Cheers, Gerry
    "A mind is like a parachute. It doesn't work if it is not open." Frank Zappa
    It's my railroad and I'll do what I want! Historically accurate attitude of US Railroad Barons.
    Forever, ridin' drag in railroad knowledge.
    Audi, Vide, Tace, Si Vis Vivere In Pace​

    https://www.trainsim.com/forums/filedata/fetch?filedataid=79656&type=medium​ https://www.trainsim.com/forums/filedata/fetch?filedataid=79654&type=small

    Comment

    • crstagg
      4500 Post Veteran


      • Nov 1999
      • 4885
      • Huntsville, AL
      • Texan
      • MSOR

      #3
      Also if you want to create a unique file name for the Log file so it does not overwrite the previous log, add this to the same registry folder:
      Right click in empty space in the folder, Click "New", choose "String Value", enter name as:
      LoggingFileName
      and then Right click the new item and choose Modify and in the Value Data field enter:
      (0) - (1) - (4).txt

      That will create a log file that look like this:
      Open Rails - T1.5.1-992-g1383ac843 - 7.1.2024 9.52.50 AM.txt
      With the Version # , Date and time created.
      Charles

      Comment

      • E444-014
        New Member
        • Nov 2015
        • 6
        • Italy
        • MSOR

        #4
        Thank you both, I have inserted into the registry what you suggested and everything works perfectly.
        Greetings, Sergio.​

        Comment

        Working...