https://github.com/thejoefin/lasterrorevent
Get the Last Windows Event Viewer Error that happened within the last hour for a faster dev loop
https://github.com/thejoefin/lasterrorevent
Last synced: about 1 month ago
JSON representation
Get the Last Windows Event Viewer Error that happened within the last hour for a faster dev loop
- Host: GitHub
- URL: https://github.com/thejoefin/lasterrorevent
- Owner: TheJoeFin
- License: mit
- Created: 2026-05-07T01:55:15.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2026-05-10T00:48:07.000Z (2 months ago)
- Last Synced: 2026-05-10T02:41:21.609Z (2 months ago)
- Language: C#
- Size: 13.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Last Error Event
`lee` is a Windows-only .NET global tool that finds the newest **Application Error** event in the Windows **Application** log, formats it for LLM debugging, and copies it to your clipboard.
## Usage
```powershell
lee
```
By default, `lee` only returns a matching event if it happened within the last **1 hour**. If nothing recent is found, it tells you and offers to open Event Viewer.
## Options
```text
lee [--max-age-hours ] [--open-event-viewer] [--no-prompt]
```
- `--max-age-hours `: override the default 1-hour recency window.
- `--open-event-viewer`: open Event Viewer automatically when no recent event is found.
- `--no-prompt`: suppress the interactive Event Viewer prompt.
## Install as a global tool from this repo
```powershell
dotnet pack .\src\LastErrorEvent\LastErrorEvent.csproj -c Release
dotnet tool install --global --add-source .\src\LastErrorEvent\bin\Release LastErrorEvent.Tool
```
If you rebuild locally and want to reinstall:
```powershell
dotnet tool update --global --add-source .\src\LastErrorEvent\bin\Release LastErrorEvent.Tool
```
## Local development
```powershell
dotnet build .\LastErrorEvent.slnx
dotnet test .\LastErrorEvent.slnx
dotnet run --project .\src\LastErrorEvent -- --help
```