<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.flightgear.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=5thDimension</id>
	<title>FlightGear wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.flightgear.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=5thDimension"/>
	<link rel="alternate" type="text/html" href="https://wiki.flightgear.org/Special:Contributions/5thDimension"/>
	<updated>2026-04-15T22:18:18Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://wiki.flightgear.org/w/index.php?title=Preset_Properties&amp;diff=11023</id>
		<title>Preset Properties</title>
		<link rel="alternate" type="text/html" href="https://wiki.flightgear.org/w/index.php?title=Preset_Properties&amp;diff=11023"/>
		<updated>2009-03-08T21:50:53Z</updated>

		<summary type="html">&lt;p&gt;5thDimension: how do you set these presets?&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{stub}}&lt;br /&gt;
''This page is great, but can someone please add how to set these presets by both command line options as well as the .fgfsrc file?''&lt;br /&gt;
&lt;br /&gt;
[[FlightGear]] currently uses these properties to set up the [[aircraft]]'s initial situation :&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/airport-id''' - The ICAO identifier for an airport waypoint, such as &amp;quot;KJFK&amp;quot; or &amp;quot;EGLL&amp;quot;. See also the runway property. An airport identifier takes precedence over vor-id , ndb-id , or fix , but is overridden by latitude-deg and longitude-deg .&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/airspeed-kt'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/altitude-ft''' - If this property has a value greater than -9990, then Flight Gear will use it to set the initial altitude MSL, unless the glideslope-deg property is also set.&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/carrier'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/fix''' - The identifier for a fix or intersection of some kind. All other waypoints take precedence over a fix. This property should be renamed to fix-id .&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/heading-deg''' - The aircraft's initial heading in degrees. Flight Gear may also use this property to select a default runway in some situations.&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/latitude-deg''' - If an explicit longitude and latitude are supplied, Flight Gear will use that; otherwise, it will look for an airport-id , vor-id , ndb-id , fix , and then finally default to KSFO if nothing else is available.&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/longitude-deg''' - See latitude-deg.&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/mach'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/ndb-id''' - The identifier for an NDB waypoint, such as &amp;quot;OW&amp;quot; or &amp;quot;YSH&amp;quot;. An NDB takes precedence over fix .&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/onground''' - True if the aircraft should start on the ground, false otherwise.&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/parkpos'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/pitch-deg'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/roll-deg'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/runway''' - The name of a runway, such as &amp;quot;22&amp;quot; or &amp;quot;11R&amp;quot;, for an onground start or an initial approach path. This property makes sense only with the airport-id property. /sim/presets/vor-id The identifier for a VOR waypoint, such as &amp;quot;YOW&amp;quot; or &amp;quot;ART&amp;quot;. A VOR takes precedence over ndb-id and fix .&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/speed-down-fps'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/speed-east-fps'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/speed-north-fps'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/speed-set'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/trim'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/uBody-fps'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/vBody-fps'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/vor-id'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/wBody-fps'''&lt;/div&gt;</summary>
		<author><name>5thDimension</name></author>
	</entry>
	<entry>
		<id>https://wiki.flightgear.org/w/index.php?title=Preset_Properties&amp;diff=11022</id>
		<title>Preset Properties</title>
		<link rel="alternate" type="text/html" href="https://wiki.flightgear.org/w/index.php?title=Preset_Properties&amp;diff=11022"/>
		<updated>2009-03-08T21:49:17Z</updated>

		<summary type="html">&lt;p&gt;5thDimension: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{stub}}&lt;br /&gt;
''This page is great, but can someone please add how to set these presets?''&lt;br /&gt;
&lt;br /&gt;
[[FlightGear]] currently uses these properties to set up the [[aircraft]]'s initial situation :&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/airport-id''' - The ICAO identifier for an airport waypoint, such as &amp;quot;KJFK&amp;quot; or &amp;quot;EGLL&amp;quot;. See also the runway property. An airport identifier takes precedence over vor-id , ndb-id , or fix , but is overridden by latitude-deg and longitude-deg .&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/airspeed-kt'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/altitude-ft''' - If this property has a value greater than -9990, then Flight Gear will use it to set the initial altitude MSL, unless the glideslope-deg property is also set.&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/carrier'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/fix''' - The identifier for a fix or intersection of some kind. All other waypoints take precedence over a fix. This property should be renamed to fix-id .&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/heading-deg''' - The aircraft's initial heading in degrees. Flight Gear may also use this property to select a default runway in some situations.&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/latitude-deg''' - If an explicit longitude and latitude are supplied, Flight Gear will use that; otherwise, it will look for an airport-id , vor-id , ndb-id , fix , and then finally default to KSFO if nothing else is available.&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/longitude-deg''' - See latitude-deg.&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/mach'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/ndb-id''' - The identifier for an NDB waypoint, such as &amp;quot;OW&amp;quot; or &amp;quot;YSH&amp;quot;. An NDB takes precedence over fix .&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/onground''' - True if the aircraft should start on the ground, false otherwise.&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/parkpos'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/pitch-deg'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/roll-deg'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/runway''' - The name of a runway, such as &amp;quot;22&amp;quot; or &amp;quot;11R&amp;quot;, for an onground start or an initial approach path. This property makes sense only with the airport-id property. /sim/presets/vor-id The identifier for a VOR waypoint, such as &amp;quot;YOW&amp;quot; or &amp;quot;ART&amp;quot;. A VOR takes precedence over ndb-id and fix .&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/speed-down-fps'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/speed-east-fps'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/speed-north-fps'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/speed-set'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/trim'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/uBody-fps'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/vBody-fps'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/vor-id'''&lt;br /&gt;
&lt;br /&gt;
'''/sim/presets/wBody-fps'''&lt;/div&gt;</summary>
		<author><name>5thDimension</name></author>
	</entry>
	<entry>
		<id>https://wiki.flightgear.org/w/index.php?title=Talk:SG_LOG&amp;diff=10842</id>
		<title>Talk:SG LOG</title>
		<link rel="alternate" type="text/html" href="https://wiki.flightgear.org/w/index.php?title=Talk:SG_LOG&amp;diff=10842"/>
		<updated>2009-03-03T08:29:20Z</updated>

		<summary type="html">&lt;p&gt;5thDimension: Thanks and clarification on what I was trying to figure out for this page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''Thanks to the person who filled this in--it helps.  I was trying to figure out how some of the code worked, and which files were read in, which lead me to see calls to SG_LOG in the code.  But I didn't figure out how to activate the logging of those messages.  I understood the idea behind it (logging class and level) but not the way to just activate it (for example, I want to be able to turn on logging of messages that are of class SG_GENERAL, and priority SG_INFO.  I understand more of it now--so the log is not logging to a file but to the console (wish I knew how to redirect that to a file so I can search it later).  I see that to turn it on, I need to run fgfs --log-level=info (for example).  Not sure how to select SG_GENERAL as the log class yet.  I plan to update this page with my complete understanding when I've figured out what I am trying to figure out.  I really opened this page b/c I think it will help others and it needs to be documented.  I appreciate the info very much!''&lt;br /&gt;
&lt;br /&gt;
It isn't entirely clear if you are really interested in the SG_LOG facility or more generally in a facility to do logging to a file, however SG_LOG is just a wrapper macro for the SimGear &amp;quot;logstream&amp;quot; class (all output being by default written to the console!). If you are interested in simply logging certain properties to a file at runtime, you may want to use another mechanism - which is more flexible and doesn't require recompilation (see below for more details).&lt;br /&gt;
&lt;br /&gt;
So, the SG_LOG macro just simplifies usage, and is purely meant to be used by programmers/developers, who regularly recompile the source code.&lt;br /&gt;
If you just want to log some runtime data to a file, there are several other more flexible ways to do this (possible via networking/scripting or XML).&lt;br /&gt;
&lt;br /&gt;
Basically, the macro allows you to easily associate your debug messages with a &amp;quot;channel&amp;quot; and a &amp;quot;priority&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Which means that you can further specify each log message with a channel (think like a &amp;quot;parent&amp;quot; subsystem, to which the message belongs) and also a priority to indicate if it's a critical/non-critical message.&lt;br /&gt;
&lt;br /&gt;
This mechanism allows users to explicitly enable/subscribe to certain log messages, only - while ignoring others. This can be helpful in order to troubleshoot certain problems.&lt;br /&gt;
&lt;br /&gt;
Logging settings can be modified using the --log-level command line option, detailed help about most available command line options can be obtained from the fgfs executable by calling it with the following arguments: &amp;quot;--help --verbose&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
All necessary details can be obtained from the source code (SG &amp;amp; FG) and its documentation/comments:&lt;br /&gt;
* http://simgear.org/doxygen/logstream_8hxx.html&lt;br /&gt;
* http://simgear.org/doxygen/logstream_8hxx-source.html&lt;br /&gt;
&lt;br /&gt;
So, you just pass a channel and a logging priority/class to the macro, available log channels and priorities can be found here:&lt;br /&gt;
* http://simgear.org/doxygen/debug__types_8h.html&lt;br /&gt;
* http://simgear.org/doxygen/debug__types_8h-source.html&lt;br /&gt;
* http://cvs.flightgear.org/simgear/doxygen/debug__types_8h-source.html&lt;br /&gt;
&lt;br /&gt;
For logging only certain data/properties to a file, you may want to use another logging facility:&lt;br /&gt;
* http://cvs.flightgear.org/viewvc/source/src/Main/logger.cxx?revision=1.7&amp;amp;view=markup&lt;br /&gt;
&lt;br /&gt;
Hope this helps&lt;br /&gt;
&lt;br /&gt;
Please note that such and similar questions are usually better discussed on the mailing lists, IRC or forums.&lt;br /&gt;
&lt;br /&gt;
Also, please do feel free to revamp this info and turn it into usable text for your &amp;quot;SG_LOG&amp;quot; article, so that it can hopefully help other users understand the FlightGear logging system.&lt;/div&gt;</summary>
		<author><name>5thDimension</name></author>
	</entry>
</feed>