Global Search
🚀 Log Viewer now provides a way to search across all files.
- If a particular file is not selected, it will search across all files;
- If a particular file is selected, it will search only that file.
If you have tons of log files (more than 100 MB), it even provides a progress bar to tell you how much there's left to search.
Chunked indices
Log Viewer indexes the positions of logs inside the files for a much faster retrieval when browsing the logs.
Previously, Log Viewer created one big index per log file. If that file contains millions of log entries, the index could've gotten over 100 MB in size easily. Loading this index into memory on each pagination request would be not only memory-intensive, but also CPU-intensive (deseralizing the cached index).
Now, the full index is split into multiple smaller chunks, with the ability to read only the chunk that's contains the required log items. This means Log Viewer can now efficiently browse log files that are even tens of GB in size.
Note: the speed of reading the full log file and indexing it has not changed. This will still be one of the slowest operations in the Log Viewer, but it's necessary for improved experienced later once the file has been scanned.
What's Changed
- Chunking indices + Global Search by @arukompas in #127
- fix the toggling of severities by @arukompas in #128
Full Changelog: v1.5.3...v1.6.1