Skip to content
An interface to preview, download and delete Laravel log files, using Backpack.
PHP HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Create support.yml Feb 21, 2018
src removed illuminate/support dependency since it's included in laravel Sep 4, 2019
tests added bogus unit test Jul 31, 2016
.editorconfig barebones skeleton package Jun 26, 2015
.gitignore Add .gitignore (#7) Sep 23, 2016
.scrutinizer.yml Add travis.yml and scrutinizer.yml Mar 16, 2016
.travis.yml updated travis May 1, 2018
CHANGELOG.md changelog Sep 4, 2019
CONTRIBUTING.md Update CONTRIBUTING.md Jun 17, 2016
LICENSE.md Update LICENSE.md Mar 16, 2017
README.md added hire us section to readme May 3, 2019
composer.json
issue_template.md Create issue_template.md Nov 1, 2017
phpunit.xml added bogus unit test Jul 31, 2016

README.md

Backpack\LogManager

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Style CI Total Downloads

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

# 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.

Usage

Add a menu element for it or just try at your-project-domain/admin/log

LogManager interface

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Overwriting Functionality

If you need to modify how this works in a project:

  • create a routes/backpack/logmanager.php file; the package will see that, and load your routes file, instead of the one in the package;
  • create controllers/models that extend the ones in the package, and use those in your new routes file;
  • modify anything you'd like in the new controllers/models;

Security

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.

Credits

License

Backpack is free for non-commercial use and 49 EUR/project for commercial use. Please see License File and backpackforlaravel.com for more information.

Hire us

We've spend more than 50.000 hours creating, polishing and maintaining administration panels on Laravel. We've developed e-Commerce, e-Learning, ERPs, social networks, payment gateways and much more. We've worked on admin panels so much, that we've created one of the most popular software in its niche - just from making public what was repetitive in our projects.

If you are looking for a developer/team to help you build an admin panel on Laravel, look no further. You'll have a difficult time finding someone with more experience & enthusiasm for this. This is what we do. Contact us. Let's see if we can work together.

You can’t perform that action at this time.