A powerful Electron-based log viewer application for Ruby on Rails projects. It aims to become the dev tool for log related debugging and unlock productivity.
- Modern Vue.js frontend with Vite for fast development
- Beautiful, responsive UI for log viewing and management
- Real-time log filtering and searching by request ID
- Rails log parsing and grouping by request
- Multiple HTTP method support (GET, POST, PUT, DELETE, PATCH)
- Cross-platform Electron application
- Download the latest release from the releases page
- Add
config.log_tags = [ :request_id ]to your Rails application'sconfig/application.rbfile - Restart your Rails application
- Open Logspect and select your Rails application directory
- Start your Rails application
- Open Logspect and start viewing logs
- Node.js (v16 or higher)
- pnpm package manager
- overmind (brew install overmind)
Run both Vite dev server and Electron together:
pnpm install
overmind startThis will:
- Start the Vite development server at
http://localhost:5173 - Wait for Vite to be ready, then launch Electron
- Enable hot module replacement for fast development
- Automatically open DevTools in Electron
If you prefer to run them separately:
-
Install dependencies:
pnpm install
-
Start the Vue.js development server:
pnpm dev
-
In another terminal, start Electron in development mode:
pnpm start
-
Build the Vue.js frontend for production:
pnpm build
-
Create Electron distribution (includes building Vue app):
pnpm dist
pnpm dev- Start Vite development server onlypnpm start- Start Electron in development modepnpm build- Build Vue.js app for productionpnpm start- Start Electron with built filespnpm dist- Build and package Electron app
src/- Electron main process filesmain.js- Main Electron process with Rails log parsing
src-vue/- Vue.js frontend source codecomponents/- Vue componentsassets/- Static assetsApp.vue- Main Vue applicationmain.js- Vue application entry pointindex.html- Development HTML template
public/- Public assets and fallback HTML filesdist/- Built frontend files (generated)vite.config.js- Vite configurationpreload.js- Electron preload script for secure IPC
- Development Mode: Electron loads the Vue app from the Vite dev server (
http://localhost:5173) with hot reload - Production Mode: Electron loads the built Vue app from the
distfolder - Rails Integration: Select a Rails project directory to monitor
log/development.log - Real-time Updates: Log entries are parsed and grouped by request ID, then streamed to the Vue frontend
- Frontend: Vue.js 3, Vite
- Desktop: Electron
- Package Manager: pnpm
- Build Tool: electron-builder
- Development: concurrently, wait-on, cross-env
This project is licensed under the MIT License - see the LICENSE file for details.
