loganalyzer icon indicating copy to clipboard operation
loganalyzer copied to clipboard

only .log files are imported

Open ghost opened this issue 5 years ago • 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?

ghost avatar Apr 21 '20 14:04 ghost

Sorry, currently only *.log files are loaded. See: https://github.com/pbek/loganalyzer/blob/15e43b687eacb11a6ce719383a01d15e9eadfd2c/src/mainwindow.cpp#L1295

pbek avatar Apr 21 '20 15:04 pbek

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

kenfc avatar Jun 17 '24 17:06 kenfc