by wkitty42 » Sat Apr 14, 2018 5:28 pm
that's why i grep my console logs... i've also been adjusting the logging code so that it makes it clearer where the entries are coming from... some of this logging is just not currently available in FG because it only exists in my local copy that's i'm hacking on to add more AI related logging to...
a quick explanation of my methods:
tail is a program that follows a text file and shows you the most recent entries added to the file... i'm using it on the log file...
the output from tail is being piped into grep which is a string search tool... it is outputting only the matching text i'm searching for...
in the end, i have a continually updated screen of log entries that only pertain to what i'm looking for...
i'm not doing the class logging thing because i still want/need all of the data logged... some of the log entries i'm looking for come from different classes, i think...
tail -F runfgfsdebug-console.log | egrep -Hin -e "FGAIFlightPlan|exception|\{atc\}|Traffic manager:|could not"
so with the above command line, i'll only get output that has one of these strings in it...
"FGAIFlightPlan"
"exception"
"\{atc\}"
"Traffic manager:"
"could not"
tee is another tool that simply splits the input and writes it to two places... in my case, it writes it to the screen and to another log file... if you remember the reel-to-reel tape machines that had playback heads beside the recording heads, you could listen to what was recorded immediately after it was written to the tape... tee is kinda like that in that you can see the data as soon as it is written to the log file so you don't have to wait until after the run to go looking through the log...
i forget where the log levels and classes are detailed but the wiki should have them... if not, the command line help should... i just don't know if the command line help details all of them...
as far as problematic ground nets goes, i suspect them when there's an error or exception logged... that's why i'm trying to clarify the logging entries so we'll know which ground net file it is and maybe even which parking space or route that is messed up...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."