openldap/contrib/ldapc++/src/debug.h
Kurt Zeilenga 84d0e26234 Initial check of the LDAP C++ SDK written by Ralf Haferkamp <rhafer@suse.de>
Copyright notices have been adjusted per on-file OpenLDAP Contributor
Assignment Agreement.
2000-09-01 18:46:32 +00:00

29 lines
635 B
C++

/*
* Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
#ifndef DEBUG_H
#define DEBUG_H
#include <iostream>
#define LDAP_DEBUG_NONE 0x0000
#define LDAP_DEBUG_TRACE 0x0001
#define LDAP_DEBUG_RESPONSE 0x0002
#define LDAP_DEBUG_REQUEST 0x0004
#define LDAP_DEBUG_PARAMETER 0x0008
#define LDAP_DEBUG_ANY -1
#define DEBUGLEVEL LDAP_DEBUG_ANY
#define PRINT_FILE \
cerr << "file: " __FILE__ << " line: " << __LINE__
#define DEBUG(level, arg) \
if(level & DEBUGLEVEL){ \
cerr << arg ; \
}
#endif // DEBUG_H