{"id":24959093,"url":"https://github.com/raythurman2386/log_viewer","last_synced_at":"2026-05-17T15:38:26.265Z","repository":{"id":275384005,"uuid":"925925858","full_name":"raythurman2386/log_viewer","owner":"raythurman2386","description":"A high-performance log file viewer built with Python and C++. Combines the ease of use of PyQt6 with the performance of C++ for file operations.","archived":false,"fork":false,"pushed_at":"2025-02-04T13:32:05.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T12:48:04.298Z","etag":null,"topics":["cpp","pyqt6","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raythurman2386.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-02T04:42:41.000Z","updated_at":"2025-02-04T13:32:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"06730716-86e2-4292-ac59-d512e2cb00ce","html_url":"https://github.com/raythurman2386/log_viewer","commit_stats":null,"previous_names":["raythurman2386/log_viewer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/raythurman2386/log_viewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raythurman2386%2Flog_viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raythurman2386%2Flog_viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raythurman2386%2Flog_viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raythurman2386%2Flog_viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raythurman2386","download_url":"https://codeload.github.com/raythurman2386/log_viewer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raythurman2386%2Flog_viewer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278778960,"owners_count":26044256,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","pyqt6","python"],"created_at":"2025-02-03T07:46:09.406Z","updated_at":"2025-10-07T12:48:04.672Z","avatar_url":"https://github.com/raythurman2386.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Log Viewer\n\nA high-performance log file viewer built with Python and C++. Combines the ease of use of PyQt6 with the performance of C++ for file operations.\n\n## Features\n\n- **High Performance File Handling**\n  - C++ backend for efficient file operations\n  - Python fallback when C++ module is unavailable\n  - Memory-efficient handling of large files\n  - Smart caching of line positions\n\n- **Real-time Monitoring**\n  - Automatic detection of file changes\n  - Directory monitoring for new log files\n  - Handles file creation, modification, and deletion\n\n- **Modern User Interface**\n  - Multi-tab interface for viewing multiple logs\n  - Monospace font for better readability\n  - No line wrapping for log files\n  - Maintains scroll position during updates\n\n- **Error Handling**\n  - Graceful fallback to Python implementation\n  - Clear error messages\n  - Robust file watching with proper cleanup\n\n## Requirements\n\n- Python 3.8 or higher\n- PyQt6\n- CMake 3.15 or higher\n- C++ compiler with C++17 support\n- pybind11 (installed via pip)\n- watchdog\n\n## Installation\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/yourusername/log_viewer.git\ncd log_viewer\n```\n\n2. Use the automated build scripts:\n\n### Windows (PowerShell):\n```powershell\n# Allow script execution if needed\nSet-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process\n\n# Build C++ and setup Python environment\n.\\build.ps1\n\n# Or build everything and create executable\n.\\build.ps1 -BuildExe\n\n# Additional options:\n.\\build.ps1 -BuildCpp:$false    # Skip C++ build\n.\\build.ps1 -BuildPython:$false # Skip Python setup\n.\\build.ps1 -BuildType \"Debug\"  # Build in debug mode\n```\n\n### Linux/Mac:\n```bash\n# Give execution permission\nchmod +x build.sh\n\n# Build C++ and setup Python environment\n./build.sh\n\n# Or build everything and create executable\n./build.sh --build-exe\n\n# Additional options:\n./build.sh --no-cpp         # Skip C++ build\n./build.sh --no-python      # Skip Python setup\n./build.sh --build-type Debug  # Build in debug mode\n```\n\nThe build scripts will:\n- Check for required dependencies (CMake, Python)\n- Build the C++ component\n- Set up a Python virtual environment\n- Install required Python packages\n- Optionally create a standalone executable\n\n### Manual Installation:\n\nIf you prefer to install manually:\n\n1. Create and activate a virtual environment:\n```bash\npython -m venv .venv\n.venv\\Scripts\\activate  # Windows\nsource .venv/bin/activate  # Linux/Mac\n```\n\n2. Install Python dependencies:\n```bash\npip install -r requirements.txt\n```\n\n3. Build the C++ module:\n```bash\ncmake -B build -S . -G \"Visual Studio 17 2022\" -A x64\ncmake --build build --config Release\n```\n\n## Usage\n\n### Running from Source:\n```bash\npython src/python/main.py\n```\n\n### Running the Executable:\nAfter building with `-BuildExe` or `--build-exe`, find the standalone executable in the `dist` directory.\n\n### Features:\n- Open individual log files via File -\u003e Open File\n- Monitor directories for log files via File -\u003e Open Directory\n- Files are automatically refreshed when changes are detected\n- New log files in monitored directories are automatically added\n- Deleted files are automatically removed from the viewer\n\n## Project Structure\n\n```\nlog_viewer/\n├── src/\n│   ├── python/\n│   │   ├── core/\n│   │   │   ├── file_loader.py   # Python/C++ hybrid file loading\n│   │   │   └── file_watcher.py  # File system monitoring\n│   │   ├── gui/\n│   │   │   └── main_window.py   # PyQt6 user interface\n│   │   └── main.py             # Application entry point\n│   └── cpp/\n│       ├── file_loader/\n│       │   ├── file_loader.hpp  # C++ file loading interface\n│       │   └── file_loader.cpp  # C++ implementation\n│       └── bindings/\n│           └── bindings.cpp     # pybind11 bindings\n├── CMakeLists.txt              # CMake build configuration\n└── README.md\n```\n\n## Roadmap\n\nThe following features and improvements are planned for future releases:\n\n- **Enhanced Log Formatting**\n  - Improve log format detection and parsing\n  - Add support for common log formats\n  - Implement customizable format templates\n\n- **Advanced Filtering and Search**\n  - Real-time log filtering capabilities\n  - Full-text search with regex support\n  - Customizable highlighting rules\n\n- **Cross-Platform Optimization**\n  - Enhanced support for Linux and macOS\n  - Platform-specific performance improvements\n  - Native look and feel on each OS\n\n- **Additional Tools and Features**\n  - Log analysis tools\n  - Statistical insights\n  - Export and reporting capabilities\n  - Customizable dashboards\n\n## Development\n\n- Python code is formatted using black\n- C++ code follows modern C++17 practices\n- Uses pybind11 for Python/C++ interop\n- PyQt6 for the GUI components\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch\n3. Commit your changes\n4. Push to the branch\n5. Create a new Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraythurman2386%2Flog_viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraythurman2386%2Flog_viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraythurman2386%2Flog_viewer/lists"}