Setting The Log Level Of The Server - Netscape DIRECTORY SERVER 6.2 - PLUG-IN Manual

Table of Contents

Advertisement

Setting the Log Level of the Server

nsslapd-pluginarg0: d:/netscape/servers/slapd-host/config/slapd-collations.conf
nsslapd-pluginId: orderingrule
nsslapd-pluginVersion: 6.0
nsslapd-pluginVendor: Netscape Communications Corporation
nsslapd-pluginDescription: internationalized ordering rule plugin
This method allows for more descriptive configuration, which is easier to maintain.
To find the plug-in entry DN, retrieve
to your start function. Once the DN is known, the normal plug-in API functions for
entry retrieval and manipulation can be used for configuration retrieval.
For additional information, check the code samples provided here:
<server_root>/plugins/slapd/slapi/examples
Setting the Log Level of the Server
If your functions call the
error log, you need to make sure that the Directory Server is configured to log
messages with the severity level you've specified. The available severity levels are
fully documented in the Reference section on page 534.
For example, suppose you call this function in your plug-in:
slapi_log_error( SLAPI_LOG_PLUGIN, "searchdn_preop_init",
"Plug-in successfully registered.\n" );
You need to make sure that the Directory Server is configured to log messages with
the severity level
to the log level of "plugin".
46
Netscape Directory Server Plug-In Programmer's Guide • December 2003
slapi_new_condvar()
. In the Directory Server 4.x, this corresponds
SLAPI_LOG_PLUGIN
from the
SLAPI_TARGET_DN
function to write messages to the
passed
pblock

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.2

Table of Contents