Analyze errors in your Umbraco website using Artificial Intelligence!
Stop wasting hours reading through log files. Let AI analyze your website's errors and give you clear, actionable solutions in plain English.
| Package | NuGet |
|---|---|
| AI.Diagnostics |
Your logs are analyzed by powerful AI models that understand common web application issues and can explain them clearly.
If the same error appears 100 times, you'll see it as one issue with a count of "100" - not 100 separate items!
Choose from:
- Google Gemini - Cloud-based, powerful, easy to set up
- Ollama - FREE, runs on your own computer, no internet needed
- OpenAI - Use GPT models for analysis
- Azure OpenAI (coming soon!)
Easy-to-use interface right inside your Umbraco admin panel.
Get detailed analysis with:
- Overall health summary
- Likely causes for each issue
- Step-by-step fix suggestions
- Reference documentation links
- Severity assessments
dotnet add package AI.DiagnosticsInstall-Package AI.Diagnostics- Right-click on your project in Visual Studio
- Click "Manage NuGet Packages..."
- Click the "Browse" tab
- Search for:
AI.Diagnostics - Click "Install"
You need to pick ONE of these options:
Ollama runs AI on your own computer - completely free!
- Download Ollama: Visit ollama.com and download it
- Install and start Ollama: Just run the installer
- Download an AI model: Open your terminal and run:
ollama pull llama3
That's it! Ollama will run in the background.
Google's Gemini is powerful and has a generous free tier.
- Get an API Key:
- Go to Google AI Studio
- Click "Get API Key"
- Copy your key (looks like:
AIzaSyA...)
- Get an API Key:
- Go to OpenAI Platform
- Click "API Keys"
- Create one by clicking "Create new secret key"
Keep your API key safe - you'll need it in Step 2!
Open the file called appsettings.json in your Umbraco project and add this section:
You can customize these settings:
{
"AI": {
"Diagnostics": {
"LogLevels": ["Error", "Critical"],
"MaxBatchSize": 100,
"EnableAI": true,
"AIProvider": "Ollama",
"PromptFilePath": "prompt/analysis-prompt.txt",
"Ollama": {
"Endpoint": "http://localhost:11434",
"Model": "llama3"
},
"Gemini": {
"ApiKey": "YOUR-API-KEY-HERE",
"Model": "gemini-1.5-flash"
},
"OpenAI": {
"ApiKey": "",
"Model": "",
"OrganizationId": null
}
}
}
}Important: Replace YOUR-API-KEY-HERE with your actual API key from Step 1!
Settings explained:
-
LogLevels: Which severity levels to analyze
- Options:
"Trace","Debug","Information","Warning","Error","Critical" - Default:
["Error", "Critical", "Warning"]
- Options:
-
MaxBatchSize: Maximum number of unique issues to analyze at once
- Default: 100
-
EnableAI: Turn AI analysis on/off
true= AI analysis enabledfalse= Just show raw logs
-
AIProvider: Which AI service to use
- Options:
"Ollama"or"Gemini"(more coming soon!)
- Options:
-
PromptFilePath: Optional path to custom prompt file for advanced users
- Start your Umbraco website (press F5 in Visual Studio)
- Log in to the Umbraco admin panel (the backoffice)
- Click on "Settings" in the left menu
- Click "AI Diagnostics"
- Choose which types of errors to analyze (Error, Critical, or Warning)
- Select a time range (last hour, day, week, etc.)
- Click the big "Analyze Logs" button
- Wait a few seconds while AI does its magic! β¨
The analysis report includes:
π Summary Statistics
- Total logs analyzed
- Number of unique issues found
- Overall health assessment from AI
π Detailed Analysis for Each Issue
- Log Entry: The actual error message and when it occurred
- Occurrence Count: How many times this exact issue appeared
- Likely Cause: AI's explanation of what's wrong (in plain English!)
- Suggested Fixes: Step-by-step solutions to try (ordered from easiest to most complex)
- Reference Links: Helpful documentation and guides
- Severity Assessment: How serious the issue is (Low, Medium, High, Critical)
We're actively working on exciting new features:
- β Azure OpenAI: Enterprise-grade OpenAI for Azure customers
- π Export to PDF/Excel: Download analysis reports
- π Trend Analysis: Track if errors are increasing or decreasing over time
- π¨ Enhanced Visualizations: More charts and graphs
Found a bug or have a suggestion? We'd love to hear from you!
π Report Issues: GitHub Issues
When reporting an issue, please include:
- What you expected to happen
- What actually happened
- Error messages (if any)
- Your configuration (without API keys!)
- Steps to reproduce
This project is licensed under the MIT License - see the LICENSE file for details.
Built with:
- β€οΈ Love for the Umbraco community
- π€ Powered by AI (Gemini, Ollama, and more!)
- β Lots of coffee
Happy debugging! π
Made with β€οΈ for the Umbraco community