diff --git a/app/Providers/LogServiceProvider.php b/app/Providers/LogServiceProvider.php deleted file mode 100644 index 7bc4555e..00000000 --- a/app/Providers/LogServiceProvider.php +++ /dev/null @@ -1,41 +0,0 @@ -popHandler(); - config(['logging.channels.single.path' => $this->getLogPath()]); - - if (! config('app.debug')) { - @unlink(storage_path('logs/laravel.log')); - } - } - - /** - * Register any application services. - * - * @return void - */ - public function register() - { - // - } - - protected static function getLogPath() - { - $mask = substr(md5(implode(',', array_values(get_db_config()))), 0, 16); - - return storage_path("logs/bs-$mask.log"); - } -} diff --git a/config/app.php b/config/app.php index 05b27cd7..95b483a1 100644 --- a/config/app.php +++ b/config/app.php @@ -182,7 +182,6 @@ return [ App\Providers\AppServiceProvider::class, App\Providers\PluginServiceProvider::class, App\Providers\EventServiceProvider::class, - App\Providers\LogServiceProvider::class, App\Providers\MemoryServiceProvider::class, App\Providers\RouteServiceProvider::class, App\Providers\ResponseMacroServiceProvider::class, diff --git a/config/logging.php b/config/logging.php index 6ffda01a..902efafb 100644 --- a/config/logging.php +++ b/config/logging.php @@ -13,7 +13,7 @@ return [ | */ - 'default' => env('LOG_CHANNEL', 'single'), + 'default' => env('LOG_CHANNEL', 'stack'), /* |--------------------------------------------------------------------------