I'll try to recreate the example to explain a bit more
The log files are generated with each run of multiple applications. All applications dump their log files
nested under the same root folder (let's call it
LofFiles). The
nested folder starts with the name of the application followed by a time stamp. This means that
multiple runs of the apps will create multiple folders even if they are a few minutes apart. See below for an example.
All applications that dump their logs under this same
LogFiles folder use the same custom logging framework. This logging framework writes the log files like this:

So,
MyMainApp will have a
warnings.txt and
trace.txt and so will
SomeOtherApp. The above files (most of them at least) will be found under all the folders in the first screenshot. Which means that ultimately, the
warnings.txt and
trace.txt files (and more) are ambiguous. That is, without knowing the full path, it is not possible to differentiate between a
warnings.txt from one app vs another.
In addition to that, there are some massive log files that I want to ignore completely. For example, in the above screenshot, these would be
CRC.txt, CRC2.txt and
CRC3.txt. There are other log files I would like to ignore as well.
Now, coming to the directory watcher, I currently have no way to...
- ...ignore
SomeOtherApp folder (there could be
SomeOtherApp2 as well and so on)
- ...have the watcher pick the last modified folder of
MyMainApp. If I don't do that, then multiple
warnings.txt (and others) show up which I don't want to see
- ...no way to include multiple file names in the same search. Although maybe the regex filter could work? I am not great at regex and have not tried that root yet. It would be nice to have the file filter of the directory watcher accept multiple file filters with a comma or semicolon e.g.
warnings.txt;dbtrace.txt;*.log- ...ignore the
CRC (and other) files while dragging and dropping
Because of the way the logging is setup, ultimately, I want from the latest MyMainApp folder, all the relevant log files (warnings.txt, dbtrace.txt, ai.txt) opened and merged into a single log file, which is then opened up.I hope this clears it up? Please let me know if it is still unclear
What if we supported wildcard names in the directory path? Would that help?
Adding wildcard support to the directory path would certainly help with filtering out the unwanted app folders.