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

Re: How to turn on logging for ldap library



Jeremiah Martell wrote:
I'm having trouble turning on the logging for openldap (the client
library, not the server).

I've ran it with --enable-debug, but Im not sure where it logs to. I
cant find any file anywhere. What's the easiest way to make the
libldap.a library log? Or better yet, tell it where to log to?

The application that links to libldap must enable logging with an ldap_set_option() call. By default it will go to stderr, but you can set an additional destination using lutil_debug_file().

--
 -- Howard Chu
 Chief Architect, Symas Corp.  http://www.symas.com
 Director, Highland Sun        http://highlandsun.com/hyc
 OpenLDAP Core Team            http://www.openldap.org/project/