From 0f33453610c46ef730192820017f8c1270b3096f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 2 Feb 2022 09:57:50 +0100 Subject: Diagnostics event logging to Nextcloud log MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl Add config samples Signed-off-by: Julius Härtl --- config/config.sample.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'config/config.sample.php') diff --git a/config/config.sample.php b/config/config.sample.php index c433fb51d23..32a946ceb51 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -2079,4 +2079,18 @@ $CONFIG = [ * Also, it might log sensitive data into a plain text file. */ 'ldap_log_file' => '', + +/** + * Enable diagnostics event logging + * + * If enabled the timings of common execution steps will be logged to the + * Nextcloud log at debug level. log.condition is useful to enable this on + * production systems to only log under some conditions + */ +'diagnostics.logging' => true, + +/** + * Limit diagnostics event logging to events longer than the configured threshold in ms + */ +'diagnostics.logging.threshold' => 0, ]; -- cgit v1.2.3