ensi / laravel-stdout-logs-helper
laravel stdout logs helper
Installs: 37 616
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 3
Open Issues: 0
Requires
- php: ^8.1
- monolog/monolog: ^2.0 || ^3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.2
- pestphp/pest: ^1.22 || ^2.0
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.11
- spaze/phpstan-disallowed-calls: ^2.15
README
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
- composer install
- 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.