[Date Prev][Date Next]
RE: logging enhancements, take 2
Sorry about that. Kurt and I have been conducting discussions
on openldap-devel so everyone would be informed. Anyway, if what
you're doing satisfies Kurt, I'll be happy to bow out. I haven't
committed anything yet, and haven't invested so much time that I'd
feel bad letting someone else take over. Post some notes on what
you've done and let Kurt evaluate.
> -----Original Message-----
> From: Ben Collins [mailto:email@example.com]
> Sent: Tuesday, October 10, 2000 10:59 AM
> To: Gary Williams
> Cc: 'Kurt D. Zeilenga'; 'firstname.lastname@example.org'
> Subject: Re: logging enhancements, take 2
> 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
> 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.
> My company is looking for this, mainly so our department can show what
> kind of usage we are getting from the server.
> I'll drop my work on the logging, so long as this takes care
> of the main
> issue I was working on, which was all the warnings when compiled with
> -Wall, and removes the hardcoded number of arguments required.
> / Ben Collins -- ...on that fantastic voyage... --
> Debian GNU/Linux \
> ` email@example.com -- firstname.lastname@example.org --
> email@example.com '