viewer.log
This module provides a graphical log viewer using PySide6. The LogViewer class is a QMainWindow-based widget that displays the log file written by Decologr in a styled QTextEdit widget. It automatically refreshes to show new log entries.
Classes:
LogViewer: A main window that displays the log file and refreshes automatically.
Features:
Dark theme with a modern red-accented styling.
Automatically reads and displays the log file written by Decologr.
Refreshes periodically to show new log entries.
Provides a “Clear Log” button to reset the log display.
Auto-scrolls to the bottom to show the latest entries.
Usage Example:
>>> viewer = LogViewer()
>>> viewer.show()