定制 sdtech/log-viewer-laravel 二次开发

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

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

sdtech/log-viewer-laravel

最新稳定版本:v1.0.0

Composer 安装命令:

composer require sdtech/log-viewer-laravel

包简介

This package simplifies the process of viewing Laravel logs by providing a user-friendly interface to browse, filter, and manage log entries directly from the application. It allows developers to monitor and troubleshoot issues in real-time without needing to access the file system or navigate compl

README 文档

README

Latest Version Issues Stars Stars Total Downloads

About

It simplifies the process of viewing Laravel logs by providing a user-friendly interface to browse, filter, and manage log entries directly from the application. It allows developers to monitor and troubleshoot issues in real-time without needing to access the file system or navigate complex log files The current features are :

  • View logs
  • Download logs
  • Clear logs
  • Store logs

Requirements

Installation

  1. From your projects root folder in terminal run:
composer require sdtech/log-viewer-laravel
  1. In config/app.php, add it:
'providers' => [
    // Other Service Providers...
    Sdtech\LogViewerLaravel\Providers\LogViewerLaravelServiceProvider::class,
],
  1. Publish the packages views, config file, assets, and language files by running the following from your projects root folder:
php artisan vendor:publish --tag=logviewerlaravel

configuration

  1. Go to your config folder, then open "logviewerlaravel.php" file
  2. here you must add that info or add the info to your .env file .
'log_viewer_author' => env('LOGVIEWER_AUTHOR'),
'log_viewer_title' => env('LOGVIEWER_APP_TITLE'), // default LARAVEL
'max_file_size' => env('LOGVIEWER_MAX_FILE_SIZE'), // default 52428800
'pattern'       => env('LOGVIEWER_PATTERN', '*.log'), // no need to change it
'storage_path'  => env('LOGVIEWER_STORAGE_PATH', storage_path('logs')) // no need to change it

Uses

  1. We provide a sample code of functionality that will help you to integrate easily. Add a route in your web routes file:
Route::get('log', [Sdtech\LogViewerLaravel\Controllers\LogViewerLaravelController::class, 'index']);

Go to http://your_url/log or some other route

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-10-19