| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220 |
- <?php
- use Monolog\Handler\StreamHandler;
- use Monolog\Logger;
- return [
- /*
- |--------------------------------------------------------------------------
- | Default Log Channel
- |--------------------------------------------------------------------------
- |
- | This option defines the default log channel that gets used when writing
- | messages to the logs. The name specified in this option should match
- | one of the channels defined in the "channels" configuration array.
- |
- */
- 'default' => env('LOG_CHANNEL', 'stack'),
- /*
- |--------------------------------------------------------------------------
- | Log Channels
- |--------------------------------------------------------------------------
- |
- | Here you may configure the log channels for your application. Out of
- | the box, Laravel uses the Monolog PHP logging library. This gives
- | you a variety of powerful log handlers / formatters to utilize.
- |
- | Available Drivers: "single", "daily", "slack", "syslog",
- | "errorlog", "monolog",
- | "custom", "stack"
- |
- */
- 'channels' => [
- 'stack' => [
- 'driver' => 'stack',
- 'channels' => ['daily', 'dingding'],
- ],
- 'single' => [
- 'driver' => 'single',
- 'path' => storage_path('logs/laravel.log'),
- 'level' => 'debug',
- ],
- 'appleStorePay' => [
- 'driver' => 'daily',
- 'path' => storage_path('logs/appleStorePay.log'),
- 'level' => 'debug',
- 'days' => 7,
- 'permission' => 0666
- ],
- 'googlePay' => [
- 'driver' => 'daily',
- 'path' => storage_path('logs/appleStorePay.log'),
- 'level' => 'debug',
- 'days' => 7,
- 'permission' => 0666
- ],
- 'cashPay' => [
- 'driver' => 'daily',
- 'path' => storage_path('logs/cashPay.log'),
- 'level' => 'debug',
- 'days' => 60,
- 'permission' => 0666
- ],
- 'fastPay' => [
- 'driver' => 'daily',
- 'path' => storage_path('logs/fastPay.log'),
- 'level' => 'debug',
- 'days' => 60,
- 'permission' => 0666
- ],
- 'nicePay' => [
- 'driver' => 'daily',
- 'path' => storage_path('logs/nicePay.log'),
- 'level' => 'debug',
- 'days' => 60,
- 'permission' => 0666
- ],
- 'aegPay' => [
- 'driver' => 'daily',
- 'path' => storage_path('logs/aegPay.log'),
- 'level' => 'debug',
- 'days' => 60,
- 'permission' => 0666
- ],
- 'RussiaPay' => [
- 'driver' => 'daily',
- 'path' => storage_path('logs/russiaPay.log'),
- 'level' => 'debug',
- 'days' => 60,
- 'permission' => 0666
- ],
- 'LQPay' => [
- 'driver' => 'daily',
- 'path' => storage_path('logs/LQPay.log'),
- 'level' => 'debug',
- 'days' => 60,
- 'permission' => 0666
- ],
- 'passPay' => [
- 'driver' => 'daily',
- 'path' => storage_path('logs/passPay.log'),
- 'level' => 'debug',
- 'days' => 7,
- 'permission' => 0666
- ],
- 'paySuccess' => [
- 'driver' => 'daily',
- 'path' => storage_path('logs/paySuccess.log'),
- 'level' => 'debug',
- 'days' => 7,
- 'permission' => 0666
- ],
- 'AppflyerEvent' => [
- 'driver' => 'daily',
- 'path' => storage_path('logs/appflyerEvent.log'),
- 'level' => 'debug',
- 'days' => 7,
- 'permission' => 0666
- ],
- 'adjustEvent' => [
- 'driver' => 'daily',
- 'path' => storage_path('logs/adjustEvent.log'),
- 'level' => 'debug',
- 'days' => 7,
- 'permission' => 0666
- ],
- 'ip' => [
- 'driver' => 'daily',
- 'path' => storage_path('logs/ip.log'),
- 'level' => 'debug',
- 'days' => 7,
- 'permission' => 0666
- ],
- 'invitation' => [
- 'driver' => 'daily',
- 'path' => storage_path('logs/invitation.log'),
- 'level' => 'debug',
- 'days' => 7,
- 'permission' => 0666
- ],
- 'daily' => [
- 'driver' => 'daily',
- 'path' => storage_path('logs/laravel.log'),
- 'level' => 'debug',
- 'days' => 30,
- 'permission' => 0666
- ],
- 'slack' => [
- 'driver' => 'slack',
- 'url' => env('LOG_SLACK_WEBHOOK_URL'),
- 'username' => 'Laravel Log',
- 'emoji' => ':boom:',
- 'level' => 'critical',
- ],
- 'stderr' => [
- 'driver' => 'monolog',
- 'handler' => StreamHandler::class,
- 'with' => [
- 'stream' => 'php://stderr',
- ],
- ],
- 'syslog' => [
- 'driver' => 'syslog',
- 'level' => 'debug',
- ],
- 'errorlog' => [
- 'driver' => 'errorlog',
- 'level' => 'debug',
- ],
- 'SubCommand' => [
- 'driver' => 'daily',
- 'path' => storage_path('logs/subCommand.log'),
- 'level' => 'debug',
- 'days' => 7,
- 'permission' => 0666
- ],
- 'benchmark' => [
- 'driver' => 'daily',
- 'path' => storage_path('logs/benchmark.log'),
- 'level' => 'debug',
- 'days' => 7,
- 'permission' => 0666
- ],
- 'dingding' => [
- 'driver' => 'monolog',
- 'handler' => \App\Log\TelegramHandler::class,
- 'handler_with' => [
- 'level' => Logger::ERROR,
- ]
- ],
- 'LQPay' => [
- 'driver' => 'daily',
- 'path' => storage_path('logs/LQPay.log'),
- 'level' => 'debug',
- 'days' => 60,
- 'permission' => 0666
- ],
- 'apcopay' => [
- 'driver' => 'daily',
- 'path' => config('pay.apcopay.log.file'),
- 'level' => config('pay.apcopay.log.level', 'debug'),
- 'days' => 14,
- ],
- ],
- ];
|