greensight / laravel-stdout-logs-helper
Installs: 1 866
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^7.3 || ^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- illuminate/support: ^8.53
- monolog/monolog: ^2.3
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2021-10-05 20:23:24 UTC
README
Deprecated, use https://github.com/ensi-platform/laravel-telemetry instead
Пакет для дублирования логов в stdout.
Установка
composer require greensight/laravel-stdout-logs-helper
- Оберните описание каналов логирования в
config/logging.php
в вызовLaravelStdoutLogsHelper::addStdoutStacks()
- Добавляйте новые каналы логирования используя вспомогательные функции
Пример:
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)
],
]);