Skip to content

Commit

Permalink
fix: externalise app log level (#265)
Browse files Browse the repository at this point in the history
* fix: externalise app log level

* fix: correct local.php structure for logging overwrite
  • Loading branch information
JoshuaLicense authored Aug 22, 2024
1 parent 309edb8 commit 42dec8b
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 7 deletions.
21 changes: 19 additions & 2 deletions app/api/config/autoload/local.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,25 @@ return [
'priority' => [
'name' => 'priority',
'options' => [
'priority' => \Laminas\Log\Logger::WARN
]
'priority' => \Laminas\Log\Logger::WARN,
],
],
],
],
],
],
],
'ExceptionLogger' => [
'writers' => [
'full' => [
'options' => [
'stream' => 'php://stderr',
'filters' => [
'priority' => [
'name' => 'priority',
'options' => [
'priority' => \Laminas\Log\Logger::WARN,
],
],
],
],
Expand Down
2 changes: 1 addition & 1 deletion app/internal/config/autoload/config.global.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
'priority' => [
'name' => 'priority',
'options' => [
'priority' => \Laminas\Log\Logger::WARN
'priority' => '%log_level%'
]
],
]
Expand Down
19 changes: 18 additions & 1 deletion app/internal/config/autoload/local.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,26 @@ return [
],
],
],
]
],
]
],
'ExceptionLogger' => [
'writers' => [
'full' => [
'options' => [
'stream' => 'php://stderr',
'filters' => [
'priority' => [
'name' => 'priority',
'options' => [
'priority' => \Laminas\Log\Logger::WARN
],
],
],
],
],
],
],
],

// enable the virus scanning of uploaded files
Expand Down
2 changes: 1 addition & 1 deletion app/selfserve/config/autoload/config.global.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
'priority' => [
'name' => 'priority',
'options' => [
'priority' => \Laminas\Log\Logger::WARN
'priority' => '%log_level%'
]
],
]
Expand Down
12 changes: 10 additions & 2 deletions app/selfserve/config/autoload/local.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,15 @@ return [
'writers' => [
'full' => [
'options' => [
'stream' => 'php://stdout'
'stream' => 'php://stdout',
'filters' => [
'priority' => [
'name' => 'priority',
'options' => [
'priority' => \Laminas\Log\Logger::WARN,
],
],
],
],
]
]
Expand All @@ -71,7 +79,7 @@ return [
'writers' => [
'full' => [
'options' => [
'stream' => 'php://stdout',
'stream' => 'php://stderr',
'filters' => [
'priority' => [
'name' => 'priority',
Expand Down

0 comments on commit 42dec8b

Please sign in to comment.