承接 alex-kudrya/laravel-log-viewer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

alex-kudrya/laravel-log-viewer

最新稳定版本:v1.5.4

Composer 安装命令:

composer require alex-kudrya/laravel-log-viewer

包简介

Laravel package for logs exploring.

README 文档

README

logo

Total Downloads Version License PHP Version Require

Laravel package for logs exploring.

preview

Installation

composer require alex-kudrya/laravel-log-viewer

In app.php add to providers array \AlexKudrya\LaravelLogViewer\Providers\LogViewerServiceProvider::class

// config/app.php

'providers' => [
    ...
    \AlexKudrya\LaravelLogViewer\Providers\LogViewerServiceProvider::class,
    ...
 ]

Publish package config and assets to your app

php artisan vendor:publish --provider="AlexKudrya\LaravelLogViewer\Providers\LogViewerServiceProvider"

Strongly recommended to disallow indexing Log Viewer pages for search engines in robots.txt:

User-agent: *

Allow: /
Disallow: /log-viewer

Congratulations! Log Viewer now allow by this URI - https://[your-host]/log-viewer

Configuration

All configs for Log Viewer located on config/log_viewer.php

route_prefix - URI for Log Viewer page. By defualt it is equal log-viewer, means that URL for Log Viewer will be https://{{your_host}}/log-viewer.

app_title - Title for your Log Viewer page, located in <head/> -> <title/> tag.

middleware - middleware(s) for Log Viewer route, for example 'auth' or some else middleware class, or array of them.

max_display_records - Maximum number of records which can be displayed. Some logs can contain hundreds of thousands of lines, and it is too many to be displayed in one time. Pagination for log doesn't make sense, so we need to set this limit. By default is 10000

Author

Alexander Kudria alexkudrya91@gmail.com

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-12