CR
cristeigabriela/mirrord-win-log-view
log viewer for mirrord's layer-win
mirrord layer-win log vieweer
A dark-themed log file viewer built with PyQt6, designed for viewing and filtering mirrord layer-win log files.
Features
- Tabbed Interface - Open multiple log files in separate tabs
- Filtering
- Query filter with wildcard support (e.g.,
*GetProcAddress*) - Exclusion filter with semicolon-separated patterns
- Case-sensitive option
- Filter by log type (INFO, DEBUG, ERROR, etc.)
- Query filter with wildcard support (e.g.,
- Column Visibility - Toggle visibility of Date, Type, Thread, Function, and Line of Code columns
- Source Code Integration - Double-click a row to open the source file in VS Code at the specific line
- Full Message View - Right-click any row to view the complete message in a popup
- Drag & Drop - Drop log files directly onto the window to open them
- Duplicate Prevention - Opening the same file twice switches to the existing tab
Requirements
- Python 3.8+
- PyQt6
Installation
-
Clone or download this repository
-
Install dependencies:
pip install PyQt6
-
Run the application:
python main.py
Building Standalone Executable
To create a single .exe file that can run without Python installed:
-
Navigate to the
scriptsfolder -
Run the build script:
scripts\build.bat -
Find the executable in the
distfolder:dist\LogViewer.exe
Usage
Opening Log Files
- Click Browse Logs to select log files
- Drag and drop log files onto the window
- Multiple files open in separate tabs
Filtering Logs
- Query - Enter a wildcard pattern to match messages
- Filter Out - Enter patterns to exclude, separated by semicolons (e.g.,
noise;spam) - Case Sensitive - Toggle case sensitivity for the exclusion filter
- Types - Check/uncheck log types to show/hide them
Column Visibility
Use the Columns checkboxes to toggle which columns are visible. The Message column is always visible.
Viewing Full Messages
Right-click on any row and select View Full Message to see the complete message content in a popup window.
Opening Source Code
- Set the Src Path to your mirrord source code root directory
- Double-click any row to open the corresponding source file in VS Code at the specific line number
Log Format
The viewer expects log files with the following space-separated format:
<timestamp> <type> <thread> <function>: <file:line>: <message>
Example:
2024-01-15T10:30:45 INFO 1234 MyFunction: src/module.rs:42: Operation completed successfully
Keyboard Shortcuts
Ctrl+W- Close current tab (system default)Escape- Close message popup