Skip to content

Commit d6bdb0f

Browse files
lucasalva87Pek5892
authored andcommitted
fix: sposta i log Laravel in logs/app.log e abilita rotazione giornaliera a 30 giorni
1 parent d60854a commit d6bdb0f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

config/logging.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
|
1818
*/
1919

20-
'default' => env('LOG_CHANNEL', 'stack'),
20+
'default' => env('LOG_CHANNEL', 'daily'),
2121

2222
/*
2323
|--------------------------------------------------------------------------
@@ -58,16 +58,16 @@
5858

5959
'single' => [
6060
'driver' => 'single',
61-
'path' => storage_path('logs/laravel.log'),
61+
'path' => base_path('logs/app.log'),
6262
'level' => env('LOG_LEVEL', 'debug'),
6363
'replace_placeholders' => true,
6464
],
6565

6666
'daily' => [
6767
'driver' => 'daily',
68-
'path' => storage_path('logs/laravel.log'),
68+
'path' => base_path('logs/app.log'),
6969
'level' => env('LOG_LEVEL', 'debug'),
70-
'days' => env('LOG_DAILY_DAYS', 14),
70+
'days' => env('LOG_DAILY_DAYS', 30),
7171
'replace_placeholders' => true,
7272
],
7373

@@ -122,7 +122,7 @@
122122
],
123123

124124
'emergency' => [
125-
'path' => storage_path('logs/laravel.log'),
125+
'path' => base_path('logs/app.log'),
126126
],
127127
],
128128
];

0 commit comments

Comments
 (0)