Package for duplicating laravel logs in stdout
You can install the package via composer:
composer require ensi/laravel-stdout-logs-helper
Laravel stdout logs helper | Monolog | PHP |
---|---|---|
^0.1.0 | ^2.3 | ^7.3 || ^8.0 |
^0.2.0 | ^2.3 | ^7.3 || ^8.0 |
^0.3.0 | ^2.0 || ^3.0 | ^7.3 || ^8.0 |
^0.4.0 | ^2.0 || ^3.0 | ^8.1 |
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)
],
]);
Please see CONTRIBUTING for details.
- composer install
- composer test
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.