Skip to content

Commit

Permalink
feat: externalise application log level (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLicense authored Aug 21, 2024
1 parent b00118d commit 309edb8
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/api/config/autoload/config.global.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@
'priority' => [
'name' => 'priority',
'options' => [
'priority' => \Laminas\Log\Logger::WARN
'priority' => '%log_level%'
]
],
]
Expand All @@ -393,7 +393,7 @@
'priority' => [
'name' => 'priority',
'options' => [
'priority' => \Laminas\Log\Logger::WARN
'priority' => '%log_level%'
]
],
]
Expand Down
2 changes: 1 addition & 1 deletion app/api/config/autoload/local.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ return [
'priority' => [
'name' => 'priority',
'options' => [
'priority' => \Laminas\Log\Logger::DEBUG
'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 @@ -111,7 +111,7 @@
'priority' => [
'name' => 'priority',
'options' => [
'priority' => \Laminas\Log\Logger::WARN
'priority' => '%log_level%'
]
],
]
Expand Down
10 changes: 9 additions & 1 deletion app/internal/config/autoload/local.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,15 @@ return [
'writers' => [
'full' => [
'options' => [
'stream' => 'php://stdout'
'stream' => 'php://stdout',
'filters' => [
'priority' => [
'name' => 'priority',
'options' => [
'priority' => \Laminas\Log\Logger::WARN,
],
],
],
],
]
]
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 @@ -136,7 +136,7 @@
'priority' => [
'name' => 'priority',
'options' => [
'priority' => \Laminas\Log\Logger::WARN
'priority' => '%log_level%'
]
],
]
Expand Down
10 changes: 9 additions & 1 deletion app/selfserve/config/autoload/local.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,15 @@ return [
'writers' => [
'full' => [
'options' => [
'stream' => 'php://stdout'
'stream' => 'php://stdout',
'filters' => [
'priority' => [
'name' => 'priority',
'options' => [
'priority' => \Laminas\Log\Logger::WARN,
],
],
],
],
]
]
Expand Down

0 comments on commit 309edb8

Please sign in to comment.