PiRSquared17 / snaketail-net

Automatically exported from code.google.com/p/snaketail-net
1 stars 0 forks source link

How to use REGEX in file open #71

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm looking at your feature list and would like to implement
■Tails circular logs where the log file is periodically truncated/renamed.
■Tails log directory where the latest log file is displayed (Includes regex 
support)

I've got several new LOG files created every midnight and would like snaketail 
to either open it when re-started, or switch to it at midnight.
Is there any documentation on how to do this and/or how to use regex?

In the config file I see the following interesting keys:
    <TailFileConfig>
      <FilePath>X:\log\Batch1-20140619.log</FilePath>
    <FileCheckPattern>false</FileCheckPattern>
      <TitleMatchFilename>false</TitleMatchFilename>

Wondering if they are involved in what I want to do.

Original issue reported on code.google.com by rill...@gmail.com on 19 Jun 2014 at 1:06

GoogleCodeExporter commented 9 years ago
There is only wildcard matching when doing file search. Ex:

X:\log\Batch1-*.log

It will automatically use the most recent touched file if multiple matches.

Original comment by sweaty1 on 22 Jun 2014 at 7:21