[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: RE : NEW_LOGGING



Only to decide whether or not to log the message. The subsystem and level
aren't actually part of the log. With the log decision done in the macro
there's no need for those arguments in lutil_log...

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

> -----Original Message-----
> From: John Hughes [mailto:John@Calva.COM]
> Sent: Wednesday, April 24, 2002 1:33 AM
> To: 'Howard Chu'; 'Julius Enarusai'; openldap-devel@OpenLDAP.org
> Subject: RE : NEW_LOGGING
> 
> 
> ...
> 
> > and then
> > LDAP_LOG(OPERATION, INFO, ("%s: foobar %d at from %x", name, rc,
> addr));
> > will expand to
> >	if (ldap_loglevels[LDAP_SUBSYS_OPERATION] >= LDAP_LEVEL_INFO)
> >		lutil_log ("%s: foobar %d at from %x", name, rc, addr);
> 
> I haven't looked at the code, but isn't "lutil_log" interested in
> the subsystem and message level?