Download the PHP package plusinfolab/logstation without Composer
On this page you can find all versions of the php package plusinfolab/logstation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download plusinfolab/logstation
More information about plusinfolab/logstation
Files in plusinfolab/logstation
Package logstation
Short Description An elegant log management assistant for Laravel applications - search, filter, export and monitor logs in real-time with a beautiful UI
License MIT
Homepage https://github.com/plusinfolab/logstation
Informations about the package logstation
LogStation
An elegant log management assistant for Laravel applications. Search, filter, export and monitor logs in real-time with a beautiful, Telescope-inspired UI.
Features
- 🔍 Advanced Search & Filtering - Search logs by message, level, channel, date range, tags, and user
- 📤 Export Logs - Export to JSON, CSV, or TXT formats
- 📋 Saved Snippets - Save and reuse complex search filters
- 🔐 Authorization Gates - Customizable access control
- ⚡ Real-time Viewing - See logs appear instantly (with broadcasting)
- 🎨 Beautiful UI - Telescope-inspired interface built with Vue 3 and Tailwind CSS
- 💾 Flexible Storage - Database or file-based storage
- 🏷️ Auto-tagging - Automatic tagging by user, request, session, and IP
- 🔥 Exception Tracking - Full stack traces and exception details
- 📊 Statistics Dashboard - Overview of logs by level, channel, and time period
Installation
Install the package via composer:
Run the installation command:
This will:
- Publish the configuration file
- Publish and run migrations
- Publish frontend assets
Configuration
Publish the configuration file:
The config file allows you to customize:
- Storage driver (database or file)
- Database connection
- Data retention
- Watchers (log, exception, query)
- Authorization
- Real-time broadcasting
- And more...
Authorization
By default, LogStation is only accessible in the local environment. To customize who can access LogStation, publish the config file and modify the authorization.callback:
You can also define a Gate in your AuthServiceProvider:
Or use a Policy:
Enable/Disable
Storage Driver
Choose between database (default) or file:
Database Connection
Use a separate database connection (recommended):
In your .env:
Then add the connection in config/database.php:
Data Retention
Configure how long to keep logs:
Watchers
Enable/disable specific watchers:
Authorization
Customize who can access LogStation:
Or use a Gate:
Real-time Broadcasting
Enable real-time log updates:
Usage
Accessing the Dashboard
Visit /logstation in your browser (configurable via LOGSTATION_PATH).
Programmatic Usage
Artisan Commands
Schedule automatic pruning in app/Console/Kernel.php:
Search & Filtering
LogStation provides powerful filtering capabilities:
- By Level: Filter by log level (emergency, alert, critical, error, warning, notice, info, debug)
- By Channel: Filter by log channel
- By Date Range: Filter logs within a specific date range
- By User: Filter logs by authenticated user
- By Tag: Filter by auto-generated or custom tags
- Full-text Search: Search in message, exception message, and context
Creating Snippets
Save frequently used filters as snippets:
- Apply your desired filters in the UI
- Click "Save as Snippet"
- Give it a name and description
- Reuse anytime from the Snippets menu
Exporting Logs
Export filtered logs in multiple formats:
- Apply your filters
- Click "Export"
- Choose format (JSON, CSV, TXT)
- Download the file
Exports are limited to 10,000 entries by default (configurable).
Performance Considerations
Use a Separate Database
For production applications, use a dedicated database connection:
This prevents LogStation from impacting your main application's performance.
Disable in Production
By default, LogStation is disabled in production. Enable only when needed:
Regular Pruning
Schedule the prune command to run daily:
Disable Unnecessary Watchers
Disable watchers you don't need:
Frontend Development
The UI is built with Vue 3, Inertia.js, and Tailwind CSS. To customize:
Comparison with Other Tools
| Feature | LogStation | Laravel Telescope | Laravel Log Viewer |
|---|---|---|---|
| Log Search | ✅ | ❌ | ✅ |
| Log Export | ✅ | ❌ | ✅ |
| Saved Snippets | ✅ | ❌ | ❌ |
| Real-time Viewing | ✅ | ✅ | ❌ |
| Exception Tracking | ✅ | ✅ | ✅ |
| Database Queries | ✅ | ✅ | ❌ |
| Request Tracking | ✅ | ✅ | ❌ |
| Beautiful UI | ✅ | ✅ | ⚠️ |
| File Storage | ✅ | ❌ | ✅ |
Security
LogStation is designed for development and debugging. Never expose it publicly in production without proper authentication.
Default security measures:
- Only accessible in local environment by default
- Customizable authorization callback
- Gate-based access control
- Configurable middleware
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
- Aditya
- Inspired by Laravel Telescope
- Built with Spatie's Laravel Package Tools
License
The MIT License (MIT). Please see License File for more information.
All versions of logstation with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0
symfony/var-dumper Version ^6.0|^7.0
league/csv Version ^9.0