30.2. slapi_is_loglevel_set()

Checks if loglevel is selected as a log level.
Description

To specify the level of logging used by the Directory Server, the administrator can use the Server Console or set the nsslapd-errorlog-level attribute. For more information, see Red Hat Directory Server Configuration, Command, and File Reference.

Syntax

#include "slapi-plugin.h"
int slapi_is_loglevel_set( const int loglevel );

Parameters

This function takes the following parameter:

loglevel
Log level setting to check.
Returns

The function returns one of the following values:

  • 0 if loglevel is not selected as log level settings.
  • 1 if loglevel is selected as log level setting.