diff options
author | Johannes Ernst <jernst@indiecomputing.com> | 2018-06-06 20:40:06 +0000 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-06-29 10:37:45 +0200 |
commit | 0a65e62f29664730ac1aabcb612301be329ceed2 (patch) | |
tree | 3e510f67a5788138fb95bdea9f9bd7b795747c1b /core/Command | |
parent | 3ff3141a1e4c9482ddaa68e13f545eb7e62ff9b7 (diff) | |
download | nextcloud-server-0a65e62f29664730ac1aabcb612301be329ceed2.tar.gz nextcloud-server-0a65e62f29664730ac1aabcb612301be329ceed2.zip |
Added a logger for systemd/journald
Added a unit test
Signed-off-by: Johannes Ernst <jernst@indiecomputing.com>
Diffstat (limited to 'core/Command')
-rw-r--r-- | core/Command/Log/Manage.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Command/Log/Manage.php b/core/Command/Log/Manage.php index 267e84c140f..5a1dd3d048b 100644 --- a/core/Command/Log/Manage.php +++ b/core/Command/Log/Manage.php @@ -6,6 +6,7 @@ * @author Robin McCorkell <robin@mccorkell.me.uk> * @author Roeland Jago Douma <roeland@famdouma.nl> * @author Thomas Pulzer <t.pulzer@kniel.de> + * @author Johannes Ernst <jernst@indiecomputing.com> * * @license AGPL-3.0 * @@ -55,7 +56,7 @@ class Manage extends Command implements CompletionAwareInterface { 'backend', null, InputOption::VALUE_REQUIRED, - 'set the logging backend [file, syslog, errorlog]' + 'set the logging backend [file, syslog, errorlog, systemd]' ) ->addOption( 'level', @@ -181,7 +182,7 @@ class Manage extends Command implements CompletionAwareInterface { */ public function completeOptionValues($optionName, CompletionContext $context) { if ($optionName === 'backend') { - return ['file', 'syslog', 'errorlog']; + return ['file', 'syslog', 'errorlog', 'systemd']; } else if ($optionName === 'level') { return ['debug', 'info', 'warning', 'error']; } else if ($optionName === 'timezone') { |