From 7b4a51cc28ffc632eebaf0f33ec9ed6586e8d903 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 29 Jul 2004 12:39:51 +0000 Subject: [PATCH] further improve loglevel selection --- doc/man/man5/slapd.conf.5 | 13 ++++++++++++- servers/slapd/config.c | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/man/man5/slapd.conf.5 b/doc/man/man5/slapd.conf.5 index 890f18a2bb..1481c26a9d 100644 --- a/doc/man/man5/slapd.conf.5 +++ b/doc/man/man5/slapd.conf.5 @@ -573,7 +573,18 @@ entry parsing .RE The desired log level can be input as a single integer that combines the (ORed) desired levels, as a list of integers (that are ORed internally), -or as a list of the names that are shown between brackets. +or as a list of the names that are shown between brackets, such that +.LP +.nf + loglevel 129 + loglevel 128 1 + loglevel acl trace +.fi +.LP +are equivalent. +The keyword +.B any +can be used as a shortcut to enable logging at all levels (equivalent to -1). .RE .TP .B moduleload diff --git a/servers/slapd/config.c b/servers/slapd/config.c index 560275d3f1..396a90321d 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -2003,6 +2003,7 @@ restrict_unknown:; { LDAP_DEBUG_PARSE, "Parse" }, { LDAP_DEBUG_CACHE, "Cache" }, { LDAP_DEBUG_INDEX, "Index" }, + { -1, "Any" }, { 0, NULL } }; int j; -- 2.39.5