https://bugs.openldap.org/show_bug.cgi?id=9507
Howard Chu <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Howard Chu <[email protected]> --- (In reply to john from comment #0) > I have a web application (cgi) that uses libldap. When I set either of the > options LBER_OPT_DEBUG_LEVEL or LDAP_OPT_DEBUG_LEVEL then the library's > debug info goes to stderr, which ends in Apache's error_log file rather than > my application's log file. > > By reading the code, I discovered that I can do: > > extern int ber_pvt_err_file; > > ber_pvt_err_file = getMyLogFP(); > > and redirect the output where I want it. This is, of course, fragile. So, > I would like to suggest the addition of something like: > > FILE * fp = getYourDesiredFP(); > ldap_set_option(NULL, LDAP_OPT_DEBUG_FILE, &fp); > <and> > ber_set_option(NULL, LBER_OPT_DEBUG_FILE, &fp); LBER_OPT_LOG_PRINT_FILE Closing this ITS. -- You are receiving this mail because: You are on the CC list for the issue.
