Board index FlightGear Development Nasal

console output to file

Nasal is the scripting language of FlightGear.

console output to file

Postby gkick » Wed Jun 19, 2019 2:32 am

Hi,

is there a way to put the console output to a textfile or log?

thks
gkick
 
Posts: 106
Joined: Sun Jan 01, 2017 11:04 pm

Re: console output to file

Postby wlbragg » Wed Jun 19, 2019 2:56 am

Linux
Code: Select all
fgfs.sh >log.txt 2>&1
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
Intel i5 3570K AMDRX480
User avatar
wlbragg
 
Posts: 4991
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/AMDRX480

Re: console output to file

Postby gkick » Wed Jun 19, 2019 3:42 am

Thanks, anything similar for win10 ?
gkick
 
Posts: 106
Joined: Sun Jan 01, 2017 11:04 pm

Re: console output to file

Postby legoboyvdlp » Wed Jun 19, 2019 8:57 am

Console is already output to %AppData/Roaming/flightgear.org/fgfs.txt.

Notice that --log-level=info seems to be output no matter what your selected log level is in FlightGear. I think that is intended - it should give more detail that the default "warn" level, for easier debugging.
User avatar
legoboyvdlp
 
Posts: 7186
Joined: Sat Jul 26, 2014 1:28 am
Callsign: YV-LEGO
Version: next
OS: Windows 10 HP

Re: console output to file

Postby Richard » Wed Jun 19, 2019 8:59 am

same thing will work from the windows command line;

e.g.

Code: Select all
"c:\Program Files\FlightGear 2019.2.0\bin\fgfs.exe" --aircraft=f-14b >log.txt 2>&1
Richard
 
Posts: 727
Joined: Sun Nov 02, 2014 10:17 pm
Version: Git
OS: Win10

Re: console output to file

Postby gkick » Wed Jun 19, 2019 3:01 pm

Thank you very much Richard, much appreciated.
gkick
 
Posts: 106
Joined: Sun Jan 01, 2017 11:04 pm


Return to Nasal

Who is online

Users browsing this forum: No registered users and 1 guest