Cross Reference: log.h
xref
: /
osnet-11
/
usr
/
src
/
lib
/
libldap5
/
include
/
ldap
/
log.h
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
1
N/A
#
pragma
ident
"%Z%%M% %I% %E% SMI"
1
N/A
1
N/A
#
ifndef
_LLOG_H
1
N/A
#
define
_LLOG_H
1
N/A
1
N/A
1
N/A
#
include
<
stdio.h
>
1
N/A
#
include
<
sys
/
types.h
>
1
N/A
#
include
<
sys
/
stat.h
>
1
N/A
#
include
<
nl_types.h
>
1
N/A
#
include
<
limits.h
>
1
N/A
#
include
<
syslog.h
>
1
N/A
#
include
<
portable.h
>
1
N/A
1
N/A
1
N/A
1
N/A
/* Log levels */
1
N/A
1
N/A
/* slapd values */
1
N/A
#
define
LDAP_DEBUG_TRACE
0x001
1
N/A
#
define
LDAP_DEBUG_PACKETS
0x002
1
N/A
#
define
LDAP_DEBUG_ARGS
0x004
1
N/A
#
define
LDAP_DEBUG_CONNS
0x008
1
N/A
#
define
LDAP_DEBUG_BER
0x010
1
N/A
#
define
LDAP_DEBUG_FILTER
0x020
1
N/A
#
define
LDAP_DEBUG_CONFIG
0x040
1
N/A
#
define
LDAP_DEBUG_ACL
0x080
1
N/A
#
define
LDAP_DEBUG_STATS
0x100
1
N/A
#
define
LDAP_DEBUG_STATS2
0x200
1
N/A
#
define
LDAP_DEBUG_SHELL
0x400
1
N/A
#
define
LDAP_DEBUG_PARSE
0x800
1
N/A
/* More values for http gateway */
1
N/A
#
define
LDAP_DEBUG_GWAY
0x1000
1
N/A
#
define
LDAP_DEBUG_GWAYMORE
0x2000
1
N/A
/* Generic values */
1
N/A
#
define
LDAP_DEBUG_ANY
0xffff
1
N/A
1
N/A
nl_catd
sundscat
;
1
N/A
extern
nl_catd
slapdcat
;
1
N/A
extern
void
ldaplogconfig
(
char
*
logf
,
int
size
);
1
N/A
extern
void
ldaplogconfigf
(
FILE
*
fd
);
1
N/A
extern
void
ldaploginit
(
char
*
name
,
1
N/A
int
facility
);
1
N/A
extern
void
ldaploginitlevel
(
char
*
name
,
1
N/A
int
facility
,
1
N/A
int
log_level
);
1
N/A
extern
void
ldaplog
(
int
level
,
char
*
fmt
,...);
1
N/A
1
N/A
#
define
Statslog
(
level
,
fmt
,
connid
,
opid
,
arg1
,
arg2
,
arg3
) \
1
N/A
{ \
1
N/A
if
(
log_debug
&
level
) \
1
N/A
fprintf
(
stderr
,
fmt
,
connid
,
opid
,
arg1
,
arg2
,
arg3
);\
1
N/A
if
(
log_syslog
&
level
) \
1
N/A
ldaplog
(
level
,
fmt
,
connid
,
opid
,
arg1
,
arg2
,
arg3
); \
1
N/A
}
1
N/A
#
endif
/* _LLOG_H */
1
N/A
1
N/A
1
N/A
1
N/A