[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openldap-devel
Subject:    RE: NEW_LOGGING
From:       "Howard Chu" <hyc () highlandsun ! com>
Date:       2002-04-25 11:20:48
[Download RAW message or body]

> -----Original Message-----
> From: Hallvard B Furuseth [mailto:h.b.furuseth@usit.uio.no]

> #define	LDAP_LOG(a, b, args) do { \
>     if (ldap_loglevels[LDAP_SUBSYS_##a] >= LDAP_LEVEL_##b)
> lutil_log args; \
>   } while(0)
>
> But where is the value from the -d argument in all this?

We still need a string version of the subsystems for the commandline parser.
	-d operation=6 -d acl=detail1

sets ldap_loglevels[LDAP_SUBSYS_OPERATION] = 6 (LDAP_LEVEL_INFO),
	ldap_loglevels[LDAP_SUBSYS_ACL] = 10 (LDAP_LEVEL_DETAIL1)...

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic