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

Installs: 31

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:laravel-package

v1.0.0 2024-10-19 07:01 UTC

This package is auto-updated.

Last update: 2024-12-19 08:46:46 UTC


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