BrineSoft Log Viewer
Log Viewer - BrineSoft Online Help Prev Page Prev Page
Overview
Options
Command Line Options
System Requirements
Purchase the Product
Register the Product
Registration Benefits
 BrineSoft Main Page | Log Viewer Page | Download this Help File

Command Line Options

Using the command line options enables to run Log Viewer from a batch file (*.bat), Windows shortcut, etc.

-<filename>
If <filename> is a full name of on existing log file and it is the only parameter on the command line the log file is loaded. This can't be used together with the other options.

-f<filename1[;filename2[;filenameN]]>
Specifies one or more log files to be open. Files are separated with ; (semicolon).

example (open two files):
"-fc:\Program Files\Some Application\Data\Logs\20060406.log;d:\Logs\Main.log"

-a<value>
Turns on and off automated log opening and closing. <value> can be either False or True. If it is True, the option File | Open/close logs automatically will be switched on, if it is False it will be switched off. It this switch is not used the last setting is used.

example (load logs automatically):
-aTrue

-d<value>
Specifies folder(s) where Log Viewer searches for log files to open. <value> is the list of folders. If this option is not use the value specified in GUI, in Options, is taken. Use ; (semicolon) to separate multiple entries.

example:
"-dc:\Program Files\Some Application\Data\Logs;d:\Some Other Logs"

-g0<value>
<value> can be either False or True. If it is True, the option View | All Entries will be switched on, if it is False it will be switched off. It this switch is not used the last setting is used.

-g1<value>
<value> can be either False or True. If it is True, the option View | Information (user group 1) will be switched on, if it is False it will be switched off. It this switch is not used the last setting is used.

-g2<value>
<value> can be either False or True. If it is True, the option View | Warnings (user group 2) will be switched on, if it is False it will be switched off. It this switch is not used the last setting is used.

-g3<value>
<value> can be either False or True. If it is True, the option View | Errors (user group 3) will be switched on, if it is False it will be switched off. It this switch is not used the last setting is used.

example (display only errors):
-g0False -g1False -g2False -g3True

-i1<value>
<value> can be either False or True. If it is True, the option Options | If file date/time matches current date will be switched on, if it is False it will be switched off. It this switch is not used the last setting is used.

-i2<value>
<value> can be either False or True. If it is True, the option Options | If file name matches one of the date masks will be switched on, if it is False it will be switched off. It this switch is not used the last setting is used.

-m<mask1[;mask2[;maskN]]>
Specifies one or more log file date masks for automated opening. Masks are separated by ; (semicolon). This list will replace the masks defined by the user in the GUI.

example:
-myyyymmdd.log;exmmdd.txt

-i3<value>
<value> can be either False or True. If it is True, the option Options | If file name matches one of the wildcards masks will be switched on, if it is False it will be switched off. It this switch is not used the last setting is used.

-n<mask1[;mask2[;maskN]]>
Specifies one or more log file wildcards masks for automated opening. Masks are separated by ; (semicolon). This list will replace the masks defined by the user in the GUI.

-x<value1[;value2[;valueN]]>
Specifies one or more substrings that will assign a log line to the user group 1 (information). Strings are separeted by ; (semicolon). This list will replace the list defined by the user in the GUI.

-y<value1[;value2[;valueN]]>
Specifies one or more substrings that will assign a log line to the user group 2 (warnings). Strings are separeted by ; (semicolon). This list will replace the list defined by the user in the GUI.

-z<value1[;value2[;valueN]]>
Specifies one or more substrings that will assign a log line to the user group 3 (errors). Strings are separeted by ; (semicolon). This list will replace the list defined by the user in the GUI.

example:
-x2006;info -ywarning;Warning -zerror;Error;fatal;Fatal

important: enclose the parameter to quotation marks if it contains spaces:

"-xProcess started;Process finished"

-r<value>
<value> can be either False or True. If it is True, the option Options | Last etries at top of list will be switched on, if it is False it will be switched off. It this switch is not used the last setting is used.

-h
When specified the main menu remains hidden. The intention is to prevent the user to make any changes in settings if Log Viewer is started by an automation system or another application.

-sn<value>
<value> can be either False or True. If it is True, the option Show line numbers (new log entries) will be switched on, if it is False it will be switched off. It this switch is not used the last setting is used.

-st<value>
<value> can be either False or True. If it is True, the option Show line time (new log entries) will be switched on, if it is False it will be switched off. It this switch is not used the last setting is used.

-kf<value>
<value> can be either False or True. If it is True, the option Keep Modified Log Focused will be switched on, if it is False it will be switched off. It this switch is not used the last setting is used.

-ot<value>
<value> can be either False or True. If it is True, the option Main window always on top will be switched on, if it is False it will be switched off. It this switch is not used the last setting is used.

See Also
Overview