GitHunt
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.)
  • 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

  1. Clone or download this repository

  2. Install dependencies:

    pip install PyQt6
  3. Run the application:

    python main.py

Building Standalone Executable

To create a single .exe file that can run without Python installed:

  1. Navigate to the scripts folder

  2. Run the build script:

    scripts\build.bat
  3. Find the executable in the dist folder:

    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

  1. Query - Enter a wildcard pattern to match messages
  2. Filter Out - Enter patterns to exclude, separated by semicolons (e.g., noise;spam)
  3. Case Sensitive - Toggle case sensitivity for the exclusion filter
  4. 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

  1. Set the Src Path to your mirrord source code root directory
  2. 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
cristeigabriela/mirrord-win-log-view | GitHunt