This is a submission for the GitHub Copilot CLI Challenge
What I Built
Log Detective is a full-stack diagnostic tool built to solve "Information Overload" in server logs. Instead of developers manually scrolling through thousands of lines of text, the Detective investigates the log files, identifies the "culprits" (errors), and visualizes the "crime scene" (the context of the crash).
The project is built as a Monorepo using TypeScript to ensure data consistency between the scanner and the viewer.
The Scanner (Backend): A Node.js engine that reads .log or .txt files. It uses a Stream API to process files line-by-line, which ensures it can handle massive 1GB+ files without crashing your computer's memory.
The Analysis: It applies a series of Regular Expression (RegEx) filters to categorize lines into DEBUG, INFO, WARN, and ERROR.
The Intelligence: It identifies Stack Traces (the nested list of code errors) and extracts the specific file and line number where the failure occurred.
The Dashboard (Frontend): A React-based UI that provides a high-level "Health Summary" and allows for deep-dive filtering.
Key Features:
Anomaly Detection: Highlights sudden spikes in error frequency.
Stack Trace Extraction: Automatically pulls out the "most guilty" line of code from a crash report.
Search & Filter: Instantly filter logs by date range or specific error codes (e.g., finding all 500 errors).
AI-Assisted Debugging: Integration with GitHub Copilot CLI helped streamline the creation of the complex parsing logic and terminal workflows.
Demo
https://log-detective-qt43.vercel.app/
My Experience with GitHub Copilot CLI
During the development of Log Detective, GitHub Copilot CLI acted as my "Senior Lead Investigator.When I encountered a new log format (like JSON-based logs), I used the CLI to quickly draft a TypeScript interface that would match that data structure.Using gh copilot suggest allowed me to stay in the terminal, keeping my "flow state" while building the backend logic."I experienced a lot I can do with GitHub Copilot CLI, its response is faster, gives a helpful response, suggestions that makes debugging log errors easier for the users.
Top comments (1)
Hi, I'm jamal, I found out about this challenge 5 days ago and built LOG-DETECTIVE within that short period of time, meanwhile for those who checked it already but didn't work, I'm sorry for that, it is working okay now. Thank you