Download the PHP package ibrahim-eng12/log-owl without Composer
On this page you can find all versions of the php package ibrahim-eng12/log-owl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ibrahim-eng12/log-owl
More information about ibrahim-eng12/log-owl
Files in ibrahim-eng12/log-owl
Package log-owl
Short Description A Laravel package to view, navigate, filter logs with descriptions and solutions
License MIT
Informations about the package log-owl
🦉 LogOwl
A Laravel package to view, navigate, and filter application logs with intelligent error descriptions and suggested solutions.
Gallery
Features
- 📋 View and navigate Laravel log files
- 🔍 Filter logs by level, date range, and search terms
- 📊 Statistics dashboard showing error counts by level and type
- 💡 Intelligent error analysis with descriptions and solutions
- 🌍 Multi-language support (English & Arabic)
- 🔄 RTL (Right-to-Left) layout support for Arabic
- 🎨 Clean, responsive UI
- 🔐 Protected with authentication middleware
- 📥 Download and clear log files
- 📱 Mobile-friendly interface
Installation
1. Install via Composer
2. Publish Configuration (Optional)
3. Publish Views (Optional)
4. Publish Translations (Optional)
5. Publish Assets - Logo (Optional)
This will publish the logo to public/vendor/log-owl/logo.png.
Configuration
After publishing the configuration, you can modify config/log-viewer.php:
Usage
After installation, navigate to /logs in your browser (while authenticated) to access LogOwl.
Routes
| Route | Method | Description |
|---|---|---|
/logs |
GET | View logs dashboard |
/logs/show/{id} |
GET | Get log entry details (JSON) |
/logs/clear |
POST | Clear current log file |
/logs/download |
GET | Download current log file |
/logs/set-locale |
POST | Change language (stored in session) |
Filtering Logs
- By Level: Filter by emergency, alert, critical, error, warning, notice, info, debug
- By Search: Search within log messages and error types
- By Date: Filter by date range
Supported Error Types
LogOwl recognizes and provides solutions for common Laravel errors:
- Database Errors: Connection issues, missing tables/columns, duplicates
- Authentication Errors: Unauthenticated access, CSRF mismatches
- File Errors: Permission denied, file not found
- View Errors: Missing Blade templates
- Class/Method Errors: Class not found, undefined methods
- Route Errors: Route not defined, method not allowed, 404
- Memory/Timeout Errors: Memory exhausted, execution timeout
- Queue Errors: Failed jobs, max attempts exceeded
- Cache/Session Errors: Store not configured
- Mail Errors: Transport failures
- And many more...
Multi-Language Support
LogOwl supports multiple languages with a built-in language switcher. Currently supported languages:
- English (en) - Default
- Arabic (ar) - With full RTL support
Changing the Default Language
Set the default locale in your configuration:
Or leave it as null to use your application's current locale.
Adding a New Language
-
Publish the translation files:
-
Copy one of the existing language files (e.g.,
en/log-viewer.php) to a new folder with your language code (e.g.,fr/log-viewer.php) -
Translate all strings in the new file
- Add the new locale to your configuration:
RTL Support
The interface automatically switches to RTL (Right-to-Left) layout when Arabic is selected. The RTL detection is based on the current locale.
Customization
Adding Custom Error Patterns
Extend the LogParser service to add custom error patterns:
Then add the translation key to your language files:
Register in a service provider:
Custom Views
Publish and modify the views:
Views will be published to resources/views/vendor/log-viewer/.
Security
- All routes are protected by the
authmiddleware by default - Configure
allowed_usersto restrict access to specific users - Disable
allow_clearandallow_downloadin production if needed
Requirements
- PHP 8.1+
- Laravel 10.0, 11.0, or 12.0
License
MIT License