AiLogAnalyzer is a WinUI3 application designed for software engineers, QA engineers, or anyone to analyze logs efficiently. It leverages AI models (OpenAI and Ollama) to provide insights and streamline log analysis.
The application monitors hotkeys, retrieves clipboard content, and interacts with AI models for processing. It's modern, flexible, and tailored for high productivity.
- AI-Powered Log Analysis: Automatically detect patterns, summarize logs, and provide actionable insights using OpenAI or Ollama models. Simply copy the log text, and let the AI handle the rest.
- Hotkey Activation: Trigger log analysis instantly with a predefined hotkey, making the workflow fast and seamless.
- Clipboard Integration: Monitors the clipboard for copied content and processes it when activated, reducing manual input.
- Intuitive UI: A modern, responsive interface built with WinUI3 for easy interaction and analysis visualization.
- Customizable Settings: Adjust AI model preferences, configure hotkeys, and personalize log parsing options to suit your workflow.
Here's what I plan to add in the future:
- Add ability to gather source code from file system via a user-provided path or using settings.
- Add ability to gather source code through network (e.g., GitHub integration).
- Add support for Azure-based AI models to ensure data privacy and security.
- Enhance the UI for better user experience
- Add automated UI tests to improve reliability.
- Integrate the tool into the Microsoft Power Toys repo.
- Explore integration with other log management tools (e.g. ELK, Datadog).
- UI:
- Sending messages using Enter doesn't work in the chat.
- When opening settings for the second time, a duplicate settings window is created instead of focusing on the active one.
- Tests: No UI tests have been implemented yet.
- Performance: Currently optimized for small to medium log files. Support for large files is planned.
- Dependencies: Requires an internet connection to use OpenAI or Powerful enough GPU/NPU for Ollama models.
Before you begin, ensure you have the following installed:
- .NET 8.0 SDK
- Windows 10 version 1903 (10.0.18362.0) or later
- Visual Studio 2022 or JetBrains Rider with the WinUI3 and .NET Desktop Development workloads
While the application is expected to run on Windows 10 version 1903 (10.0.18362.0) or later, it has been primarily tested on Windows 11 x64
git clone https://github.com/smartzan63/AiLogAnalyzer.git
cd AiLogAnalyzerThis project uses reportgenerator to generate test coverage reports.
-
Install
reportgeneratorglobally:dotnet tool install --global dotnet-reportgenerator-globaltool
-
Ensure the global tools path is in your system's
PATHvariable:- Windows: Typically
C:\Users\<YourUsername>\.dotnet\tools - Add it to your environment variables if it's missing.
- Windows: Typically
-
Alternatively, install it locally for the project:
dotnet new tool-manifest dotnet tool install dotnet-reportgenerator-globaltool
Use the command
dotnet tool run reportgeneratorin scripts when running locally.
-
Run Tests with Coverage: Use the PowerShell script to clean, test, and generate coverage reports.
.\GenerateCoverageReport.ps1 -
View HTML Report: The HTML report is generated in the
Code\coverage-reportdirectory. The script will open the report in your default browser automatically.
Feel free to contribute to this project by opening issues or submitting pull requests.
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature). - Commit your changes (
git commit -m "Add Your Feature"). - Push the branch (
git push origin feature/YourFeature). - Open a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
For any inquiries or support, feel free to reach out:
- Email: smartzan63@gmail.com
- GitHub: smartzan63