Skip to content

Commit 31eeb3a

Browse files
committed
patch: update de la config par défaut des logs
1 parent f482516 commit 31eeb3a

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

spec/support/application/app/Config/log.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
'handlers' => [
1717
'file' => [
1818
'level' => LogLevel::DEBUG,
19-
'extension' => '',
20-
'permissions' => 644,
21-
'path' => '',
19+
'extension' => '.log',
20+
'permissions' => 0644,
21+
'path' => LOG_PATH,
2222
'format' => 'line',
2323
'dayly_rotation' => true,
2424
'max_files' => 0,

src/Config/schemas/log.config.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
'file' => Expect::structure([
2020
'active' => Expect::bool(true)->nullable(),
2121
'level' => Expect::string(on_prod() ? Psr\Log\LogLevel::ERROR : Psr\Log\LogLevel::DEBUG),
22-
'extension' => Expect::string(''),
22+
'extension' => Expect::string('.log'),
2323
'permissions' => Expect::int(0644),
24-
'path' => Expect::string(''),
24+
'path' => Expect::string(LOG_PATH),
2525
'format' => Expect::anyOf('json', 'line', 'normalizer', 'scalar')->default('line'),
2626
'dayly_rotation' => Expect::bool(true),
27-
'max_files' => Expect::int(0),
27+
'max_files' => Expect::int(30),
2828
]),
2929
])->otherItems(),
3030
])->otherItems();

src/Config/stubs/log.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
*
118118
* @var string
119119
*/
120-
'extension' => '',
120+
'extension' => '.log',
121121

122122
/**
123123
* Les autorisations du système de fichiers à appliquer sur les fichiers journaux nouvellement créés.
@@ -134,7 +134,7 @@
134134
*
135135
* @var string
136136
*/
137-
'path' => '',
137+
'path' => LOG_PATH,
138138

139139
/**
140140
* Le format d'ecriture des journaux
@@ -162,7 +162,7 @@
162162
*
163163
* @var int
164164
*/
165-
'max_files' => 0,
165+
'max_files' => 30,
166166
],
167167

168168
/*

0 commit comments

Comments
 (0)