pbek/loganalyzer

only .log files are imported

uinguzero opened this issue · 2 comments

is there a way to specify which files we want the program to import?

for example also .txt files? or maybe a custom extension that we give?

pbek commented

Sorry, currently only *.log files are loaded.
See:

filters << "*.log*";

Interesting project
I can see usefulness depending on where development goes

That being said I don't see this request as being an "Enhancement"

I can't speak for wanting to use a nonstandard log extension like ".txt" though I suppose it could be possible.
But on the other hand, the ".log" limitation(??) also blocks legitimate log naming structures used by *NiX for decades.
(cron, debug, dmesg, maillog, messages, ntp, secure, syslog, etc) just to name a few.

That's also not including log rotation extensions (maillog.0, maillog.1 etc)
Though in my testing file.log.1 didn't appear to have problems

Creating a symlink for the problem file to file.log format
ln -s messages messages.log does seem to resolve the issue entirely