On Dec 4, 3:21 pm, Anton Bobrov <[EMAIL PROTECTED]> wrote:
> you need to set LDAP_OPT_DEBUG_LEVEL or/and LBER_OPT_DEBUG_LEVEL
> depending on what exactly you are looking for, see for example 
> :http://lxr.mozilla.org/mozilla/source/directory/c-sdk/ldap/clients/to...
>
>
>
> Bhawna wrote:
> > Hi,
>
> > We are using Mozilla LDAP C SDK 5.12 in our application. Can anyone
> > please help let me know, how to enable logging facility with this
> > code. I do see, logging related stuff in ldaplog.h and the same being
> > used in some .c files in source code, but I am not able to find out
> > how to make it functional for my use.
>
> > Any help in this regard will be highly appreciated.
>
> > Thanks and Regards
> > Bhawna
> > _______________________________________________
> > dev-tech-ldap mailing list
> > [EMAIL PROTECTED]
> >https://lists.mozilla.org/listinfo/dev-tech-ldap- Hide quoted text -
>
> - Show quoted text -

Hi Anton,

Thank you very much for your prompt response.

I have created a simple ldap client to test the logging facility, with
one unconditional log entry. Please see below various lines of code I
am putting in, to make it functional.

#include "ldaplog.h"
#define LDAP_DEBUG
...
        int ldaptool_dbg_lvl = LDAP_DEBUG_TRACE;
        ldap_set_option( NULL, LDAP_OPT_DEBUG_LEVEL,
                     (void *)&ldaptool_dbg_lvl);

    /* Unconditional log entry  */
        LDAPDebug( LDAP_DEBUG_TRACE, "ldap_perror\n", 0, 0, 0 );

Please let me know is it all that is needed. If yes, where will this
log file be created.

Can you please suggest some link for Mozilla, where all about logging
is documented.

Thanks and Regards
Bhawna

_______________________________________________
dev-tech-ldap mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-ldap

Reply via email to