SG LOG: Difference between revisions

Jump to navigation Jump to search
m
 
Line 17: Line 17:


For a complete list of available classes, see {{simgear file|simgear/debug/debug_types.h}}.
For a complete list of available classes, see {{simgear file|simgear/debug/debug_types.h}}.
In the C++-code, log output can be generated like this: <code>SG_LOG(SG_INSTR, SG_DEBUG, "Test=" << someVar);</code> and shown with <code>--log-level=debug --log-class=instrumentation</code>.


If you are interested in simply logging certain properties to a file at runtime, you can use either FlightGear's built-in [[Logging properties|logging framework]], or the [[generic protocol]].
If you are interested in simply logging certain properties to a file at runtime, you can use either FlightGear's built-in [[Logging properties|logging framework]], or the [[generic protocol]].
601

edits

Navigation menu