aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-05-12 16:33:34 +0200
committerJoas Schilling <coding@schilljs.com>2024-07-30 13:18:09 +0200
commit710a69b4b5c81262da3c2f4efff10a87356598d0 (patch)
treed4bebe834292cfcdce94e0058e0b9d65f1201c7f /config
parent21f558b12bdb985ec312ac8973f2be9c0d73f824 (diff)
downloadnextcloud-server-710a69b4b5c81262da3c2f4efff10a87356598d0.tar.gz
nextcloud-server-710a69b4b5c81262da3c2f4efff10a87356598d0.zip
feat(log): Allow to combine log.conditions to only log (app&user)
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'config')
-rw-r--r--config/config.sample.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index ba0ea6d4101..6e1128c2952 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -1057,6 +1057,9 @@ $CONFIG = [
* this condition is met
* - ``apps``: if the log message is invoked by one of the specified apps,
* this condition is met
+ * - ``matches``: if all the conditions inside a group match,
+ * this condition is met. This allows to log only entries to an app
+ * by a few users.
*
* Defaults to an empty array.
*/
@@ -1064,6 +1067,15 @@ $CONFIG = [
'shared_secret' => '57b58edb6637fe3059b3595cf9c41b9',
'users' => ['sample-user'],
'apps' => ['files'],
+ 'matches' => [
+ [
+ 'shared_secret' => '57b58edb6637fe3059b3595cf9c41b9',
+ 'users' => ['sample-user'],
+ 'apps' => ['files'],
+ 'loglevel' => 1,
+ 'message' => 'contains substring'
+ ],
+ ],
],
/**