Informational Messages

For informational or debug messages, use slapi_log_info_ex().
This function can be set for default logging, which means that the message
is not logged when logging is turned off for plug-ins. Informational logging
can also be set to occur only when heavy logging is used. Thus, the message
is logged when plug-in logging is both turned on and set to log all informational
messages.

Refer to Review the Plug-In for an
example of how to log an informational message from a plug-in.

Set the Appropriate Log Level in the Directory Server Configuration

Log levels can be set for plug-in informational messages, as well as
for a number of other Directory Server subsystems. You can set the log
level through Directory Service Control Center. You can also set the log level from the command
line by using the dsconf set-log-prop command.

When you set dsconf set-log-prop error level:err-plugins,
the server turns on plug-in informational logging.

Find Messages in the Log

The log file for errors, warnings, and informational messages
is instance-path/logs/errors.
All messages go to the same log so you can easily determine the order in which
events occurred.

As shown in this example, messages consist of a timestamp, followed
by an identifier, followed by the other information in the log message. Note
that this log message is broken for the printed page.