ensi/laravel-stdout-logs-helper

laravel stdout logs helper

0.4.0 2024-06-26 10:35 UTC

This package is auto-updated.

Last update: 2024-11-27 09:21:05 UTC


README

Latest Version on Packagist Tests Total Downloads

Package for duplicating laravel logs in stdout

Installation

You can install the package via composer:

composer require ensi/laravel-stdout-logs-helper

Version Compatibility

Basic usage

Example:

return LaravelStdoutLogsHelper::addStdoutStacks([
    'default' => env('LOG_CHANNEL', 'stack'),
    'channels' => [
        'daily' => LaravelStdoutLogsHelper::makeDailyChannel(storage_path('logs/laravel.log')),
        'checkout' => LaravelStdoutLogsHelper::makeDailyChannel(storage_path('logs/checkout.log'), 3)
    ],
]);

Contributing

Please see CONTRIBUTING for details.

Testing

  1. composer install
  2. composer test

Security Vulnerabilities

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

License

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