diff options
author | Johannes Ernst <jernst@indiecomputing.com> | 2018-06-18 18:29:31 +0000 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-06-29 10:37:46 +0200 |
commit | 72340b2230841b33998a52fe62d6cbbf0eeb4fc3 (patch) | |
tree | 43e1d3c39f6c6effe07e89fbb7432165d5cdf7b1 /config | |
parent | 0a65e62f29664730ac1aabcb612301be329ceed2 (diff) | |
download | nextcloud-server-72340b2230841b33998a52fe62d6cbbf0eeb4fc3.tar.gz nextcloud-server-72340b2230841b33998a52fe62d6cbbf0eeb4fc3.zip |
Added Systemd.log documentation to config.sample.php
Changed name of default system (not systemd) logger from ownCloud to Nextcloud, to be consistent
Fixed license per https://github.com/nextcloud/server/pull/9760#discussion_r195026784
Pulled upstream updates
Signed-off-by: Johannes Ernst <jernst@indiecomputing.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/config.sample.php | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/config/config.sample.php b/config/config.sample.php index 2218021bab9..68f27ed0323 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -710,18 +710,24 @@ $CONFIG = array( */ /** - * By default the Nextcloud logs are sent to the ``nextcloud.log`` file in the - * default Nextcloud data directory. - * If syslogging is desired, set this parameter to ``syslog``. - * Setting this parameter to ``errorlog`` will use the PHP error_log function - * for logging. + * This parameter determines where the Nextcloud logs are sent. + * ``file``: the logs are written to file ``nextcloud.log`` in the default + * Nextcloud data directory. The log file can be changed with parameter + * ``logfile``. + * ``syslog``: the logs are sent to the system log. This requires a syslog daemon + * to be active. + * ``errorlog``: the logs are sent to the PHP ``error_log`` function. + * ``systemd``: the logs are sent to the Systemd journal. This requires a system + * that runs Systemd and the Systemd journal. The PHP extension ``systemd`` + * must be installed and active. * * Defaults to ``file`` */ 'log_type' => 'file', /** - * Log file path for the Nextcloud logging type. + * Name of the file to which the Nextcloud logs are written if parameter + * ``log_type`` is set to ``file``. * * Defaults to ``[datadirectory]/nextcloud.log`` */ @@ -738,7 +744,9 @@ $CONFIG = array( /** * If you maintain different instances and aggregate the logs, you may want * to distinguish between them. ``syslog_tag`` can be set per instance - * with a unique id. Only available if ``log_type`` is set to ``syslog``. + * with a unique id. Only available if ``log_type`` is set to ``syslog`` or + * ``systemd``. + * * The default value is ``Nextcloud``. */ 'syslog_tag' => 'Nextcloud', |