Skip to content

Fast, lightweight log viewer with clean web UI. Supports Symfony, Laravel, Linux logs. Real-time filtering, themes, single binary

License

Notifications You must be signed in to change notification settings

sergioalmela/unilog-viewer-go

Repository files navigation

🧩 unilog-viewer

Go Version License: MIT

A fast, lightweight log viewer with a clean web interface. View Symfony, Laravel, Linux system logs, and plain text logs in your browser.

✨ Features

  • 🚀 Fast parsing - JSON logs (Symfony/Laravel) and plain text
  • 🎨 Clean web UI - TailwindCSS with dark/light themes
  • 🔍 Real-time filtering - By level and text search
  • Single binary - No dependencies
  • 🌍 Cross-platform - Linux, macOS, Windows

🚀 Quick Start

Install

# Download binary
curl -L https://github.com/sergioalmela/unilog-viewer-go/releases/latest/download/unilog-viewer-linux -o unilog-viewer
chmod +x unilog-viewer

# Or build from source
git clone https://github.com/sergioalmela/unilog-viewer-go.git
cd unilog-viewer && make build

Usage

# Basic usage
./unilog-viewer /path/to/your/app.log

# Custom port and dark mode
./unilog-viewer --port 3000 --dark /var/log/syslog

# Then open: http://localhost:8080

📋 Supported Formats

Symfony/Laravel JSON:

{"message":"User logged in","level_name":"INFO","datetime":"2024-01-20T10:30:15+00:00"}

Laravel logs:

[2024-01-20 10:30:15] local.ERROR: Database connection failed

Linux syslog:

2025-07-20T09:36:57.502931+02:00 server systemd[1]: Starting nginx.service

Plain text:

2024-01-20 10:30:15 ERROR Failed to connect to database

💻 Examples

# Symfony projects
./unilog-viewer /var/www/symfony/var/log/prod.log

# Laravel projects  
./unilog-viewer /var/www/laravel/storage/logs/laravel.log

# System logs
./unilog-viewer /var/log/syslog

# Multiple services on different ports
./unilog-viewer --port 8080 /var/log/app1.log
./unilog-viewer --port 8081 /var/log/app2.log

🛠️ Development

# Run tests
make test

# Build
make build

# Development with sample data
make dev

📝 License

MIT License - see LICENSE file for details.


Built with ❤️ for developers who love clean log viewing

About

Fast, lightweight log viewer with clean web UI. Supports Symfony, Laravel, Linux logs. Real-time filtering, themes, single binary

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published