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

Re: logging enhancements, take 2



At 10:58 AM 10/10/00 -0400, Ben Collins wrote:
>On Tue, Oct 10, 2000 at 10:08:48AM -0400, Gary Williams wrote:
>> > 
>> > It would be nice if could always use the macro:
>> >         LDAP_LOG( subsys, level, fmt, ...)  /* preferred */
>> > or
>> >         LDAP_LOG(( subsys, level, fmt, ...))
>> 
>> I was planning ultimately on two macros, one for strictly debug
>> output which would get compiled away for release builds, and
>> another for error/statistics output which would alway be available
>> for reporting necessary information.  Similar to what you did on
>> your data distribution system:
>> 
>> LDAP_DEBUG( subsys, level, fmt, ... ) would go away in release
>> LDAP_LOG( subsys, level, fmt, ... ) would not

If we go to multiple macros which have conditional definitions,
you need to use the LDAP_LOG_DEBUG(( subsys, level, fmt, ...))
form to avoid fixing the number of arguments...

>Man, this all totally blows away what I was working on :)
>
>Anyway, something I'de like to add to this, is a strictly connection based
>logging for slapd. In other words, I want usage info similar to what you
>would get with apache or proftpd. This can then be piped through a log
>analyzer of sorts.

That's was the intent of STATS logging.