denniseilander/pulse-log-files

A lightweight Laravel Pulse package for effortlessly viewing available log files in your current project.

0.2.0 2024-03-20 22:44 UTC

This package is auto-updated.

Last update: 2024-12-08 11:31:54 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

A lightweight Laravel Pulse package for effortlessly viewing available log files in your current project.

pulse-log-files

Installation

You can install the package via composer:

composer require denniseilander/pulse-log-files

Register the recorder

To let Laravel Pulse check the available log files, you need to register the recorder in the config/pulse.php file.

return [
    ...
    
    'recorders' => [
        \Denniseilander\LogFiles\Recorders\LogFiles::class => [],
    ],
];

Change the interval (optional)

By default, the recorder will be checked once every 5 minutes.
You can change this by adding the run_every_seconds key to the array.

'recorders' => [
    \Denniseilander\LogFiles\Recorders\LogFiles::class => [
        'run_every_seconds' => 10 * 60, // 10 minutes
    ],
],

Optionally, you can publish the views using

php artisan vendor:publish --tag="pulse-log-files-views"

Usage

You can use the component in your views like this:

<livewire:pulse.log-files cols="4" />

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.