Skip to content

Commit

Permalink
add a folder for laravel logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mszulik committed Mar 14, 2024
1 parent ae8088c commit 70489bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ INTERNAL_DATABASE_CONNECTION=sqlite
LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
LOG_FOLDER=connector

DB_CONNECTION=mysql
DB_HOST=connector-mysql-1
Expand Down
6 changes: 3 additions & 3 deletions config/logging.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@

'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'path' => storage_path(sprintf('logs/%s/laravel.log', env('LOG_FOLDER'))),
'level' => env('LOG_LEVEL', 'debug'),
'replace_placeholders' => true,
],

'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/laravel.log'),
'path' => storage_path(sprintf('logs/%s/laravel.log', env('LOG_FOLDER'))),
'level' => env('LOG_LEVEL', 'debug'),
'days' => 14,
'replace_placeholders' => true,
Expand Down Expand Up @@ -124,7 +124,7 @@
],

'emergency' => [
'path' => storage_path('logs/laravel.log'),
'path' => storage_path(sprintf('logs/%s/laravel.log', env('LOG_FOLDER'))),
],
],

Expand Down

0 comments on commit 70489bc

Please sign in to comment.