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

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

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

pavloniym/laravel-log-viewer

最新稳定版本:v1.3.3

Composer 安装命令:

composer require pavloniym/laravel-log-viewer

包简介

Fast and easy-to-use log viewer for your Laravel application

README 文档

README

Latest Version on Packagist Total Downloads License

Description

Log Viewer version without UI and with some modifications

Features

  • Without UI (Without frontend)
  • Support subfolders
  • Files sorting by name, size, modification time
  • Using custom pagination

Requirements

  • php: >=8.0

Installation

composer require pavloniym/laravel-log-viewer

Usage

use Stepanenko3\LaravelLogViewer\LogViewer;
use Stepanenko3\LaravelLogViewer\LogFile;

// Getting all log files
LogViewer::getFiles();

// Get specific log file by name
LogViewer::getFile('laravel.log');

// Clear cache of all files
LogViewer::clearCacheAll();

// Download specific log file by name
LogFile::download('laravel.log');

// Delete specific log file by name
LogFile::delete('laravel.log');

// Clear cache for specific log file by name
LogFile::clearCache('laravel.log');

// Query logs
LogFile::get(
    selectedFileName: 'laravel.log', // File name
    query: 'exception[0-9]+', // Filter logs by regex query string
    selectedLevels: ['warning', 'alert'], // Filter logs by level
    page: 2, // Page
    perPage: 25, // Logs per page
    direction: LogFile::NEWEST_FIRST, // Logs order. NEWEST_FIRST::OLDEST_FIRST,
);

Credits

Contributing

Thank you for considering contributing to this package! Please create a pull request with your contributions with detailed explanation of the changes you are proposing.

License

This package is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-06-25