Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rap2hpoutre/laravel-log-viewer
:dromedary_camel: Laravel log viewer
https://github.com/rap2hpoutre/laravel-log-viewer
hacktoberfest laravel laravel-log-viewer log log-viewer lumen php
Last synced: 2 days ago
JSON representation
:dromedary_camel: Laravel log viewer
- Host: GitHub
- URL: https://github.com/rap2hpoutre/laravel-log-viewer
- Owner: rap2hpoutre
- License: mit
- Created: 2014-11-23T12:12:09.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2024-03-20T08:51:22.000Z (9 months ago)
- Last Synced: 2024-11-26T02:03:22.471Z (16 days ago)
- Topics: hacktoberfest, laravel, laravel-log-viewer, log, log-viewer, lumen, php
- Language: PHP
- Homepage:
- Size: 177 KB
- Stars: 3,142
- Watchers: 60
- Forks: 375
- Open Issues: 48
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-laravel-framework - Laravel 5 Log Viewer - Log viewer (Popular Packages)
- awesome-laravel - Laravel 5 Log Viewer - Visualizador del Log de Laravel. (Paquetes utiles)
- awesome-php-cn - Laravel-Log-Viewer - 非常方便的页面 Log 查看工具 (目录 / 日志记录 Logging)
- laravel-awesome - Laravel Log Viewer - Log viewer (Popular Packages)
- awesome-laravel - Laravel 5 Log Viewer - Log viewer (Popular Packages)
README
Laravel log viewer
==================[![Packagist](https://img.shields.io/packagist/v/rap2hpoutre/laravel-log-viewer.svg)](https://packagist.org/packages/rap2hpoutre/laravel-log-viewer)
[![Packagist](https://img.shields.io/packagist/l/rap2hpoutre/laravel-log-viewer.svg)](https://packagist.org/packages/rap2hpoutre/laravel-log-viewer)
[![Packagist](https://img.shields.io/packagist/dm/rap2hpoutre/laravel-log-viewer.svg)](https://packagist.org/packages/rap2hpoutre/laravel-log-viewer)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/rap2hpoutre/laravel-log-viewer/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/rap2hpoutre/laravel-log-viewer/?branch=master)
[![Author](https://img.shields.io/badge/[email protected])](https://twitter.com/rap2h)## TL;DR
Log Viewer for Laravel 5, 6, 7, 8, 9 & 10 (still compatible with 4.2 too) and Lumen. **Install with composer, create a route to `LogViewerController`**. No public assets, no vendor routes, works with and/or without log rotate. Inspired by Micheal Mand's [Laravel 4 log viewer](https://github.com/mikemand/logviewer) (works only with laravel 4.1)## What ?
Small log viewer for laravel. Looks like this:![capture d ecran 2014-12-01 a 10 37 18](https://cloud.githubusercontent.com/assets/1575946/5243642/8a00b83a-7946-11e4-8bad-5c705f328bcc.png)
## Install (Laravel)
Install via composer
```bash
composer require rap2hpoutre/laravel-log-viewer
```Add Service Provider to `config/app.php` in `providers` section
```php
Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::class,
```Add a route in your web routes file:
```php
Route::get('logs', [\Rap2hpoutre\LaravelLogViewer\LogViewerController::class, 'index']);
```Go to `http://myapp/logs` or some other route
### Install (Lumen)
Install via composer
```bash
composer require rap2hpoutre/laravel-log-viewer
```Add the following in `bootstrap/app.php`:
```php
$app->register(\Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::class);
```Explicitly set the namespace in `app/Http/routes.php`:
```php
$router->group(['namespace' => '\Rap2hpoutre\LaravelLogViewer'], function() use ($router) {
$router->get('logs', 'LogViewerController@index');
});
```## Advanced usage
### Customize view
Publish `log.blade.php` into `/resources/views/vendor/laravel-log-viewer/` for view customization:```bash
php artisan vendor:publish \
--provider="Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider" \
--tag=views
```### Edit configuration
Publish `logviewer.php` configuration file into `/config/` for configuration customization:```bash
php artisan vendor:publish \
--provider="Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider"
```### Troubleshooting
If you got a `InvalidArgumentException in FileViewFinder.php` error, it may be a problem with config caching. Double check installation, then run `php artisan config:clear`.