Menu

#34 Pattern matching on log file name

open
nobody
None
5
2004-10-14
2004-10-14
Howard Fore
No

The vast majority of the files I watch have the date
embedded in the log name ("20041014_Foo.log" for
instance). It would be extremely useful to be able to
create a watcher that would get the current or most
recent log file with a given file name pattern. Using a
pattern of "YYYYMMDD_Foo.log" on Oct 14, 2004 would get
the "20041014_Foo.log" file if available. If not, it
would optionally grab the most recent file that matches
the pattern, or simply display a message in the log
window that there is no file matching that pattern.
You'd also need a reset feature so it could retry
finding the log file.

Discussion


Log in to post a comment.