Authors: chai chaimee & Pierre-Louis R.
URL: https://github.com/chaichaimee/logViewer
Add oldLog function
logViewer improves the functionality of NVDA's built-in Log Viewer, making it more powerful for developers and advanced users who need to analyze logs efficiently. Key features include:
Control+F to open the search dialog.F3, or go back to the previous one with Shift+F3 — without reopening the search dialog.
Control+F2.F2 (next) and Shift+F2 (previous).
The LogViewer plugin includes features to manage and preserve NVDA log content in an oldLog.txt file, ensuring logs from current and previous sessions are backed up and accessible.
oldLog.txt in the NVDA configuration directory every 5 seconds, using incremental reading for efficiency.nvda-old.log) to oldLog.txt when NVDA starts, with a timestamped header for clarity.oldLog.txt with a new timestamped header if the date changes, keeping logs organized by day.oldLog.txt exceeds 5MB, it retains the last 1,000 lines and archives older content to a new file (e.g., oldLog_YYYYMMDD_HHMMSS.txt).NVDA+Ctrl+L to open oldLog.txt in your default text editor for review.When NVDA crashes and restarts:
nvda-old.log) is automatically appended to oldLog.txt with a timestamped header during plugin initialization.nvda.log is smaller than expected (indicating a crash) and resets the file pointer to ensure accurate incremental backups from the new log file.This ensures that logs are reliably preserved, even after unexpected crashes, and can be easily accessed for debugging or review.
This add-on is designed to work seamlessly with NVDA in any language.
Instead of checking the window title (which depends on UI language), it detects the NVDA Log Viewer using its window handle.
This ensures full compatibility across all languages NVDA supports.