Package Data | |
---|---|
Maintainer Username: | tabacitu |
Maintainer Contact: | tabacitu@backpackforlaravel.com (Cristian Tabacitu) |
Package Create Date: | 2016-03-01 |
Package Last Update: | 2024-06-24 |
Home Page: | http://backpackforlaravel.com |
Language: | PHP |
License: | proprietary |
Last Refreshed: | 2024-11-10 15:04:38 |
Package Statistics | |
---|---|
Total Downloads: | 557,563 |
Monthly Downloads: | 7,475 |
Daily Downloads: | 39 |
Total Stars: | 275 |
Total Watchers: | 17 |
Total Forks: | 56 |
Total Open Issues: | 2 |
A simple interface to preview, download and delete Laravel log files.
Need an advanced logging interface?
You can use eduardorandah's Backpack package, which easily brings the popular ArcaneDev/LogViewer into your Backpack admin panel.
# install the package with composer
composer require backpack/logmanager
# [optional] Add a sidebar_content item for it
php artisan backpack:base:add-sidebar-content "<li><a href='{{ url(config('backpack.base.route_prefix', 'admin').'/log') }}'><i class='fa fa-terminal'></i> <span>Logs</span></a></li>"
For a better user experience, make sure Laravel is configured to create a new log file for each day. That way, you can browse log entries by day too. You can do that in your config/logging.php
file.
From a default Laravel configuration, make sure the daily
channel is inside the stack
channel, which is used by default:
'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => ['daily'],
],
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'level' => 'debug',
],
'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/laravel.log'),
'level' => 'debug',
'days' => 7,
],
You can change the number of days, or path, level, etc inside this the daily
channel.
Add a menu element for it or just try at your-project-domain/admin/log
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING for details.
If you need to modify how this works in a project:
routes/backpack/logmanager.php
file; the package will see that, and load your routes file, instead of the one in the package;If you discover any security related issues, please email :author_email instead of using the issue tracker.
Please subscribe to the Backpack Newsletter so you can find out about any security updates, breaking changes or major features. We send an email every 1-2 months.
Backpack is free for non-commercial use and 49 EUR/project for commercial use. Please see License File and backpackforlaravel.com for more information.