From: Pierangelo Masarati Date: Thu, 29 Jul 2004 12:39:51 +0000 (+0000) Subject: further improve loglevel selection X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7b4a51cc28ffc632eebaf0f33ec9ed6586e8d903;p=openldap further improve loglevel selection --- 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;