to have a separate logfile for openldap add to /etc/rsyslog.conf:
local4.* /var/log/openldap.log
touch /var/log/openldap.log
/etc/init.d/rsyslog restart
to have the logfile in the logrotation add a config file to /etc/logrotate.d/ :
/var/log/openldap.log
{
rotate 7
daily
missingok
notifempty
delaycompress
compress
postrotate
invoke-rc.d rsyslog reload > /dev/null
endscript
}
to change the loglevel edit /etc/ldap/slapd.d/cn\=config.ldif :
olcLogLevel: 256