Using Logger Commands in the Text Interface
The Logger text interface lets you enter commands in a console window instead of, or in addition to, using the graphical user interface.
To start the Logger with the console enabled, in the lgrConfig.xml file, set the value of the showConsole variable to true.
<var name="showConsole" type="bool" value="true" />
or start the Logger with the -c command-line option:
logger -c 1
Entering Commands
The text interface has commands for most Logger functions. Most commands consist of a command and one or more arguments, for example:
OpenFile ../logger_tapes/test.lgr
Commands must include all arguments and the arguments must be typed in the correct order. (For command descriptions, please see Command Descriptions.) For example, in the SetTimeManagement command, you must include values for each time management mode, even if you only want to use one of them:
SetTimeManagement true true true true 0.1
String list parameters are encoded as quoted strings separated by spaces. Strings in a string list may not have spaces, for example:
SetSubscriptionLists "ObjectRoot.BaseEntity.PhysicalEntity.Platform.Aircraft ObjectRoot.BaseEntity.PhysicalEntity.Radio InteractionRoot.WeaponFire"
You can manipulate the command line as follows:
- To execute a command, press
<Enter>. - To reset a command entry, press
<Escape>. - To execute a previously executed command, press the
<Up Arrow>key until the command is displayed. Then, press<Enter>. - If you have displayed a previous command by pressing
<Up Arrow>, press<Down Arrow>to move back down the command list.
Displaying a List of Commands
You can display a list of commands. They are displayed in the format:
command_name argument_1_name(argument_type) argument_2_name(argument_type) ...
To display the list of available commands, type help in the console window and press <Enter>.