https://github.com/opcodesio/log-viewer
Fast and beautiful Log Viewer for Laravel
https://github.com/opcodesio/log-viewer
laravel laravel-package laravel8 laravel9 log-viewer logging logs
Last synced: 7 months ago
JSON representation
Fast and beautiful Log Viewer for Laravel
- Host: GitHub
- URL: https://github.com/opcodesio/log-viewer
- Owner: opcodesio
- License: mit
- Created: 2022-08-15T07:02:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-02T17:45:09.000Z (8 months ago)
- Last Synced: 2025-05-06T17:13:11.277Z (7 months ago)
- Topics: laravel, laravel-package, laravel8, laravel9, log-viewer, logging, logs
- Language: PHP
- Homepage: https://log-viewer.opcodes.io
- Size: 4.2 MB
- Stars: 3,830
- Watchers: 24
- Forks: 276
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
- StarryDivineSky - opcodesio/log-viewer - viewer是一个专为Laravel框架设计的高性能日志查看工具,提供直观美观的界面和强大的日志管理功能。该项目支持实时查看日志文件,允许用户通过搜索、过滤和分页功能快速定位关键信息,并可自定义日志展示格式与布局。其核心特性包括对多种日志源的兼容性(如单文件、数据库存储等)、支持日志级别筛选、自动加载最新日志以及提供导出功能。采用前端Vue.js与后端Laravel结合的架构,实现动态交互与高效数据处理。通过简单的Composer安装即可集成,无需复杂配置即可运行。项目内置权限控制模块,支持基于角色的访问管理,确保日志安全。同时提供API接口便于与其他系统集成,适用于开发、测试及生产环境的日志监控需求。 (后端开发框架及项目 / PHP开发)
README
Log Viewer
Easy-to-use, fast, and beautiful
Documentation |
Features |
Installation |
Troubleshooting |
Credits

[OPcodes's](https://www.opcodes.io/) **Log Viewer** is a perfect companion for your [Laravel](https://laravel.com/) app.
You will no longer need to read the raw Laravel log files (and other types of logs) trying to find what you're looking for.
Log Viewer helps you quickly and clearly see individual log entries, to **search**, **filter**, and make sense of your Laravel logs **fast**. It is free and easy to install.
> 📺 **[Watch a quick 4-minute video](https://www.youtube.com/watch?v=q7SnF2vubRE)** showcasing some Log Viewer features.
### Features
- 📂 **View all the Laravel logs** in your `storage/logs` directory,
- 📂 **View other types of logs** - Horizon, Apache, Nginx, Redis, Supervisor, Postgres, and more,
- 🔍 **Search** the logs,
- 🎚 **Filter** by log level (error, info, debug, etc.),
- 🔗 **Sharable links** to individual log entries,
- 🌑 **Dark mode**,
- 📱 **Mobile-friendly** UI,
- 🖥️ **Multiple host support**,
- ⌨️ **Keyboard accessible**,
- 💾 **Download & delete** log files from the UI,
- ☑️ **Horizon** log support (up to Horizon v9.20),
- ☎️ **API access** for folders, files & log entries,
- 💌 **Mail previews** for e-mails sent to the logs,
- and more...
### Documentation
Documentation can be found on the [official website](https://log-viewer.opcodes.io/).
## Get Started
### Requirements
- **PHP 8.0+**
- **Laravel 8+**
### Installation
To install the package via composer, Run:
```bash
composer require opcodesio/log-viewer
```
After installing the package, publish the front-end assets by running:
```bash
php artisan log-viewer:publish
```
### Usage
Once the installation is complete, you will be able to access **Log Viewer** directly in your browser.
By default, the application is available at: `{APP_URL}/log-viewer`.
(for example: `https://my-app.test/log-viewer`)
## Configuration
Please visit the **[Log Viewer Docs](https://log-viewer.opcodes.io/docs)** to learn about configuring Log Viewer to your needs.
## Troubleshooting
Here are some common problems and solutions.
### Problem: Logs not loading
Please see [this page](https://log-viewer.opcodes.io/docs/3.x/log-types/default) for support log formats. If your log has a custom format, or is not supported by Log Viewer out of the box, you will need to [define your own custom log parser](https://log-viewer.opcodes.io/docs/3.x/log-types/custom).
If your logs are still not showing up, make sure the web process, which Log Viewer runs on, has permission to read these logs.
For example, if you want to read the Apache HTTP access logs in `/var/log/httpd`, you will need to make sure that your web process (apache/httpd) has permission to read these files. On unix systems, you can do this with [file ACLs](https://www.thegeekdiary.com/unix-linux-access-control-lists-acls-basics/#:~:text=Every%20file%20on%20any%20UNIX,their%20permission%20to%20the%20file).
## Screenshots
Read the **[release blog post](https://arunas.dev/log-viewer-for-laravel/)** for screenshots and more information about Log Viewer's features.
The **[release of v2](https://arunas.dev/log-viewer-v2/)** includes a few new features in v2.
The **[release of v3](https://arunas.dev/log-viewer-v3/)** includes a few new features in v3.
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Arunas Skirius](https://github.com/arukompas)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.