Syntax
#include "slapi-plugin.h" int slapi_log_error( int severity, char *subsystem, char *fmt, ... ); Parameters
#include "slapi-plugin.h" int slapi_log_error( int severity, char *subsystem, char *fmt, ... );
The function has the following parameters:
severity
subsystem
fmt, ...
The severity argument corresponds to the Log Level setting selected by in the Server Manager under Server Preferences | LDAP. If a Log Level setting is selected, messages with that severity level are written to the error log. The severity argument can have one of the following values:
SLAPI_LOG_FATAL
SLAPI_LOG_TRACE
SLAPI_LOG_PACKETS
SLAPI_LOG_ARGS
SLAPI_LOG_CONNS
SLAPI_LOG_BER
SLAPI_LOG_FILTER
SLAPI_LOG_CONFIG
SLAPI_LOG_ACL
SLAPI_LOG_SHELL
SLAPI_LOG_PARSE
SLAPI_LOG_HOUSE
SLAPI_LOG_REPL
SLAPI_LOG_CACHE
SLAPI_LOG_PLUGIN
Returns
One of the following values:
0 if successful.
-1 if an unknown severity level is specified.