定制 sultanul-arefin/log-viewer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sultanul-arefin/log-viewer

最新稳定版本:1.4.1

Composer 安装命令:

composer require sultanul-arefin/log-viewer

包简介

See laravel logs with more beautiful and flexible way

README 文档

README

Latest Version on Packagist Total Downloads License

A lightweight, secure, and beautiful Laravel log viewer. Easily monitor your application logs, search through entries, and view stack traces without leaving your browser.

Features

  • 📂 View Logs: Read your laravel.log file in a clean, tabular format.
  • 🔍 Search & Filter: Filter logs by message or level (Info, Error, Warning, etc.).
  • 📑 Pagination: Support for large log files with customizable row counts (10-50 per page).
  • 🔐 Secure Access: Built-in email-based authentication gate.
  • 🧹 Clear Logs: One-click functionality to empty your log file.
  • 📱 Responsive: Fully responsive UI built with Tailwind CSS.

Installation

You can install the package via composer:

composer require sultanul-arefin/log-viewer

For Laravel 11+

Add the service provider to your bootstrap/providers.php file:

return [
    // ...
    SultanulArefin\LogViewer\LogViewerServiceProvider::class,
];

For Laravel 10 and Below

Add the service provider to your config/app.php file:

'providers' => [
    // ...
    SultanulArefin\LogViewer\LogViewerServiceProvider::class,
],

Security Configuration

To protect your logs from unauthorized access, this package uses an email verification gate.

Add the authorized emails to your .env file, separated by commas:

LOG_VIEWER_EMAILS=admin@example.com,developer@yourdomain.com

Usage

Once installed, you can access the log viewer at:

your-domain.com/log-viewer

Authentication Flow

  • Redirection: Upon visiting the URL, you will be redirected to a verification page.
  • Verification: Enter an email address that is listed in your LOG_VIEWER_EMAILS env variable.
  • Access: If valid, a session is created, and you gain access to the dashboard.
  • Logout: Click the Logout button to securely clear your session.

Customizing the View (Optional)

If you wish to customize the look and feel of the log viewer, you can publish the views:

php artisan vendor:publish --tag="log-viewer-views"

The files will be copied to:

resources/views/vendor/log-viewer

Changelog

Please see CHANGELOG.md for more information on what has changed recently.

Contributing

Contributions are welcome!

If you have a feature request or find a bug, please open an issue or submit a pull request.

Credits

  • Author: Sultanul Arefin
  • All Contributors

License

The MIT License (MIT). Please see the LICENSE file for more information.

统计信息

  • 总下载量: 43
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固