summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-05-19 12:00:19 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-05-19 12:00:19 +0200
commita52afb040a9bb64d782df7aabcfd0075fbfd4064 (patch)
tree7916594bbeb914a4e6f685f884af1c4c466e88d6 /config
parentd90b83725f87825a68b51a32228270d9e9a82ac6 (diff)
parente79c255cabecb768061bb58ea508a38011ef6284 (diff)
downloadnextcloud-server-a52afb040a9bb64d782df7aabcfd0075fbfd4064.tar.gz
nextcloud-server-a52afb040a9bb64d782df7aabcfd0075fbfd4064.zip
Merge pull request #15965 from owncloud/conditional-logging
Conditional logging
Diffstat (limited to 'config')
-rw-r--r--config/config.sample.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index 45aaf6a107d..9a40f82252a 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -487,6 +487,27 @@ $CONFIG = array(
'loglevel' => 2,
/**
+ * Log condition for log level increase based on conditions. Once one of these
+ * conditions is met, the required log level is set to debug. This allows to
+ * debug specific requests, users or apps
+ *
+ * Supported conditions:
+ * - ``shared_secret``: if a request parameter with the name `log_secret` is set to
+ * this value the condition is met
+ * - ``users``: if the current request is done by one of the specified users,
+ * this condition is met
+ * - ``apps``: if the log message is invoked by one of the specified apps,
+ * this condition is met
+ *
+ * Defaults to an empty array.
+ */
+'log.condition' => [
+ 'shared_secret' => '57b58edb6637fe3059b3595cf9c41b9',
+ 'users' => ['sample-user'],
+ 'apps' => ['files'],
+],
+
+/**
* This uses PHP.date formatting; see http://php.net/manual/en/function.date.php
*/
'logdateformat' => 'F d, Y H:i:s',