Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Terhorst <mynamewastaken+gitlab@gmail.com>2019-10-02 02:27:45 +0300
committerTim Terhorst <mynamewastaken+gitlab@gmail.com>2019-10-03 05:18:29 +0300
commit2ad33bc06ec0d4eaa9db287f06c4b204718fba4e (patch)
tree6235877b6a107561c3051e33aee274d95315a01c /core/Command
parent3e2856545811ef6f61963299ce668749fb2af4e6 (diff)
Add Fatal logging option
Signed-off-by: Tim Terhorst <mynamewastaken+gitlab@gmail.com>
Diffstat (limited to 'core/Command')
-rw-r--r--core/Command/Log/Manage.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/Command/Log/Manage.php b/core/Command/Log/Manage.php
index 5a1dd3d048b..1015235f6ef 100644
--- a/core/Command/Log/Manage.php
+++ b/core/Command/Log/Manage.php
@@ -62,7 +62,7 @@ class Manage extends Command implements CompletionAwareInterface {
'level',
null,
InputOption::VALUE_REQUIRED,
- 'set the log level [debug, info, warning, error]'
+ 'set the log level [debug, info, warning, error, fatal]'
)
->addOption(
'timezone',
@@ -152,6 +152,8 @@ class Manage extends Command implements CompletionAwareInterface {
case 'error':
case 'err':
return 3;
+ case 'fatal':
+ return 4;
}
throw new \InvalidArgumentException('Invalid log level string');
}
@@ -171,6 +173,8 @@ class Manage extends Command implements CompletionAwareInterface {
return 'Warning';
case 3:
return 'Error';
+ case 4:
+ return 'Fatal';
}
throw new \InvalidArgumentException('Invalid log level number');
}
@@ -184,7 +188,7 @@ class Manage extends Command implements CompletionAwareInterface {
if ($optionName === 'backend') {
return ['file', 'syslog', 'errorlog', 'systemd'];
} else if ($optionName === 'level') {
- return ['debug', 'info', 'warning', 'error'];
+ return ['debug', 'info', 'warning', 'error', 'fatal'];
} else if ($optionName === 'timezone') {
return \DateTimeZone::listIdentifiers();
}