The directory monitor dialog is for adding and editing directory monitors. Directory monitors are used to track a directory for new log files. If a new log file is found it is automatically opened and, optionally, merged.
The full path to the directory you would like to monitor. Notice the button to the left of the directory text box. This button can be used to open the folder browser dialog which you can use to browse to the folder you want to monitor.
The browse for directory command can be used to open the file browser dialog. This can be used to select the directory you want to monitor.
The file name pattern is used to identify whether or not a new file in this directory should be opened in LogViewPlus. In the example above all files in the directory will be treated as new.
If you only want to open files with a ".log" extension, you could use the pattern "*.log". Note that the filename pattern can optionally be a regular expression. If you are using a regular expression you will need to check the "Is Regex" checkbox.
Matching a log file by directory and log file name is not enough. You also need to specify whether you are interested new log files or all log files. Also, if you are interested in the log files how new is "new"? To solve this problem the ignore rule gives you three options:
Today: matches all files modified today.
Track All Files: matches all files regardless of age.
If: Selecting this option will provide you with two further text boxes which let you specify the number of hours or days of time that is relevant. For example, you could configure LogViewPlus to, "open all files that were created within the last 12 hours".
If you select the merge matching files check box you will be presented with a further text box which allows you to specify a name for the merged file. Any new file detected by this directory monitor will be automatically added into the merge file. This allows you to have a single in memory file that is tracking all logs in the directory.
Once you're happy with your directory monitor configuration you can click the validate button to confirm the validity. If the directory monitor configuration is valid the matched files grid will display all files currently matched by the directory monitor. Note that your directory monitor may be valid even if no files are matched.
Note that if you change directory monitor settings you will need to revalidate.
The matched files grid shows you the results of your current directory monitor configuration. In the above example it shows the files that are matched by the current configuration. It may also display an error message if the directory monitor has been improperly configured.
The matched files grid will only be updated when you validate your settings.
Once you are done configuring your directory monitor you can save or cancel the changes. Cancelled changes cannot be recovered.