Laravel package to view application logs inside browser.

1.0.0 2018-10-18 12:36 UTC

This package is auto-updated.

Last update: 2024-10-24 18:40:05 UTC


README

Total Downloads

Laravel AppLog is a package to view application logs. It is based on rap2hpoutre/laravel-log-viewer but differs in following points:

  • No multiple log files, we only look for laravel.log file.
  • Updated styling and icons
  • Ability to filter records by error type/level, date and context
  • Auto-discovery feature for Laravel 5.5

Screenshot

Main Window

Requirements

  • PHP >= 5.6
  • Laravel 5

Installation

Install via composer

composer require sarfraznawaz2005/applog

Now add a route in your web routes file:

Route::get('applog', '\Sarfraznawaz2005\Applog\ApplogController@index');

This way logs will be available at http://yourapp/applog or whatever route you set for it.

Laravel 5.5

You are done.

Laravel 5.4 or less

Add Service Provider to config/app.php in providers section

Sarfraznawaz2005\Applog\ApplogServiceProvider::class,

Optionally run php artisan vendor:publish to publish package's view file if you wish to customize look and feel of it.

License

This code is published under the MIT License. This means you can do almost anything with it, as long as the copyright notice and the accompanying license file is left intact.