Comment surveiller le journal SimRail LIVE tout en jouant: Difference between revisions

From SimRail Wiki
Jump to navigation Jump to search
(Created page with "thumb|300x300pixel|Góra WlodowskaHow to Monitor SimRail Log LIVE While Playing. ==Tutorial== Open up ''PowerShell'': 1. Change directory to your SimRail "''logs''" directory by running: ''cd $home\AppData\LocalLow\SimKol\SimRail\logs'' 2. Run the ''Get-Content'' command with the ''-Wait''and ''-Tail'' switches to see the most recent log output: ''Get-Content .(PATH to LOG.txt) -Wait -Tail 5'' Naturally, you have to edit the 2nd comma...")
 
Line 1: Line 1:
[[File:Gora trat1.jpg|thumb|300x300pixel|Góra Wlodowska]]How to Monitor SimRail Log LIVE While Playing.
[[File:Gora trat1.jpg|thumb|300x300pixel|Góra Wlodowska]]Comment surveiller le journal SimRail LIVE tout en jouant.
==Tutorial==
==Tutorial==
  Open up ''PowerShell'':
  ouvrir PowerShell :
   
   
  1.  Change directory to your SimRail "''logs''" directory by running:
  1.  Changez de répertoire et accédez au répertoire "logs" de SimRail en exécutant la commande suivante
  ''cd $home\AppData\LocalLow\SimKol\SimRail\logs''
  cd $home\AppData\LocalLow\SimKol\SimRail\logs
   
   
  2. Run the ''Get-Content'' command with the ''-Wait''and ''-Tail'' switches to see the most recent log output:
  2. Exécutez la commande Get-Content avec les options -Wait et -Tail pour voir la sortie la plus récente du journal :
  ''Get-Content .(PATH to LOG.txt) -Wait -Tail 5''
  Get-Content .(PATH to LOG.txt) -Wait -Tail 5
   
   
  Naturally, you have to edit the 2nd command and replace  PATH to LOG.txt with the filename of the most recent log. What I do is just empty the log directory (''%appdata%..\LocalLow\SimKol\SimRail\logs''). When you're editing the command for step 2, it will look like this ''"Get-Content .*''Sim -Wait -Tail 5"'', once you start typing out the path to the log, you can hit''Tab to autofill''**, so, you can type "''Sim''" and hit Tab and it will give you the full path, something like "''.\SimRail_log_2023-02-14_20-25-11.txt*"
  Naturellement, vous devez éditer la deuxième commande et remplacer PATH to LOG.txt par le nom de fichier du journal le plus récent. Ce que je fais, c'est vider le répertoire des logs (%appdata%..\LocalLow\SimKol\SimRail\logs). Lorsque vous éditez la commande pour l'étape 2, elle ressemblera à ceci "Get-Content .*Sim -Wait -Tail 5", une fois que vous commencez à taper le chemin vers le journal, vous pouvez appuyer surTab pour le remplir automatiquement**, ainsi, vous pouvez taper "Sim" et appuyer sur Tab et cela vous donnera le chemin complet, quelque chose comme ".\SimRail_log_2023-02-14_20-25-11.txt*"
''Author: PJK''
Traduis pars : Bryan Delahaye

Revision as of 16:47, 15 April 2023

Góra Wlodowska

Comment surveiller le journal SimRail LIVE tout en jouant.

Tutorial

ouvrir PowerShell :

1.  Changez de répertoire et accédez au répertoire "logs" de SimRail en exécutant la commande suivante
cd $home\AppData\LocalLow\SimKol\SimRail\logs

2. Exécutez la commande Get-Content avec les options -Wait et -Tail pour voir la sortie la plus récente du journal :
Get-Content .(PATH to LOG.txt) -Wait -Tail 5

Naturellement, vous devez éditer la deuxième commande et remplacer PATH to LOG.txt par le nom de fichier du journal le plus récent. Ce que je fais, c'est vider le répertoire des logs (%appdata%..\LocalLow\SimKol\SimRail\logs). Lorsque vous éditez la commande pour l'étape 2, elle ressemblera à ceci "Get-Content .*Sim -Wait -Tail 5", une fois que vous commencez à taper le chemin vers le journal, vous pouvez appuyer surTab pour le remplir automatiquement**, ainsi, vous pouvez taper "Sim" et appuyer sur Tab et cela vous donnera le chemin complet, quelque chose comme ".\SimRail_log_2023-02-14_20-25-11.txt*"

Traduis pars : Bryan Delahaye