X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=docs-mini%2FREADME.logging;h=6321d39fc7ac3c244e5f07a8bb54ac9c3a1ff058;hb=afb0ada81f6fd0fe179ab00f048134d101f5f311;hp=f3be54d0c4cb62b8e95107cb9ff3499841191f2b;hpb=c22018db05d5c30584c96c47fc3d457d914352de;p=flightgear.git diff --git a/docs-mini/README.logging b/docs-mini/README.logging index f3be54d0c..6321d39fc 100644 --- a/docs-mini/README.logging +++ b/docs-mini/README.logging @@ -10,34 +10,45 @@ Gnumeric or Excel). Logging is defined in the '/logging' subbranch of the main property tree; under '/logging', each '/log' subbranch defines a separate log with its own output file and interval. Here is a simple example that logs the rudder and aileron settings every -second (1000ms) to the file steering.csv: +second (1000ms) to the file steering.csv, using a comma (the default, +anyway) as the field delimiter: + true steering.csv 1000 + , + true Rudder /controls/rudder + true Ailerons /controls/aileron -Each 'log' subbranch contains an optional 'filename' property -(defaults to "fg_log.csv"), an optional 'interval-ms' property -(defaults to 0, which logs every frame), and a series of 'entry' -subbranches. +Each 'log' subbranch contains a required 'enabled' property, an +optional 'filename' property (defaults to "fg_log.csv"), an optional +'delimiter' property (defaults to a comma), an optional 'interval-ms' +property (defaults to 0, which logs every frame), and a series of +'entry' subbranches. The 'delimiter' property uses only the first +character of the property value as the delimiter. Note that the +logger does no escaping, so you must choose a delimiter that will not +appear in the property values (that's not hard, since most of the +values are numeric, but watch for commas in the titles). -Each 'entry' subbranch contains a 'property' property specifying the -name of the property to be logged, and an optional 'title' property -specifying the title to use in the CSV file (defaults to the full path -of the property). The elapsed time in milliseconds since the start of -the simulation is always included as the first entry with the title -"Time", so there is no need to include it explicitly. +Each 'entry' subbranch contains a required 'enabled' property, a +'property' property specifying the name of the property to be logged, +and an optional 'title' property specifying the title to use in the +CSV file (defaults to the full path of the property). The elapsed +time in milliseconds since the start of the simulation is always +included as the first entry with the title "Time", so there is no need +to include it explicitly. Here's a sample of the logging output for the above log: @@ -72,4 +83,4 @@ The output log files are always relative to the current directory. -- -David Megginson, 2002-03-12 +David Megginson, last updated 2002-02-01