Argument Templates

Argument templates are a set of predefined text substitution commands which can be used when providing arguments to a LogViewPlus command or parser. Argument templates are written with the syntax ${TEMPLATE}. When an argument template is found, LogViewPlus will replace the template with its in memory value. This allows LogViewPlus to provide arguments such as "the currently selected log file" to the target process.

LogViewPlus supports the following argument templates. Note that some templates may be dependent on the type of command being executed. For example the ${REPORT_FILE} template is specific to report command execution.

Argument templates can be divided into three groups:

Target - Represents the log file currently being opened.

${TARGET_PATH} - The full path to the target file.

${TARGET_DIRECTORY} - The full path of the directory containing the target file.

${TARGET_NAME} - The file name of the target file.

${TARGET_EXTENSION} - The file name extension of the target file. Note that the extension will not be prefixed with a period. An example extension might be "log" for any *.log file.

Report - Represents the CSV file which was produced prior to the report command execution.

${REPORT_PATH} - The full path to the report file.

${REPORT_DIRECTORY} - The full path of the directory containing the report file.

${REPORT_NAME} - The file name of the report file.

${REPORT_EXTENSION} - The file name extension of the report file. Note that the extension will not be prefixed with a period. An example extension might be "log" for any *.log file.

Current - Represents the currently selected log file.

${CURRENT_PATH} - The full path to the currently selected log file.

${CURRENT_DIRECTORY} - The full path of the directory containing the currently selected log file.

${CURRENT_NAME} - The file name of the currently selected log file.

${CURRENT_EXTENSION} - The file name extension of the currently selected log file. Note that the extension will not be prefixed with a period. An example extension might be "log" for any *.log file.

${CURRENT_SELECTION} - This argument template will save each selected log entry as a temporary file. The full path to the temporary file will then be inserted into the template. Note that if multiple log entries are selected, then multiple paths will be inserted into the template.

${CURRENT_MESSAGES} - This template is similar to CURRENT_SELECTION, but rather than saving the entire log entry to a temporary file, only the log message (as parsed by LogViewPlus) will be saved to the temporary file.

< >