Changing the LDAP Sync Logging Configuration
You can create a Logback configuration for logging LDAP Sync.
To Create Your own Logback Configuration
- Create an empty file, name it
logback.xml
and copy the Default Logback Configuration to your file.Note: Alternatively, you can copy the
logback.xml
file from theldapsync.jar
archive (for example, when using 7-ZIP). -
Adapt the configuration to your requirements.
-
Save the file.
- Update the command line call to start LDAP Sync
Your customized logback configuration will be used with the next start of LDAP Sync
To Change the Logging Configuration when Starting ldapsync.jar
You can change the logging configuration by passing the path as a Java parameter:
java -Dlogback.configurationFile=\path\to\logbackfile -jar ldapsync.jar
If the logback.xml
is stored in the same folder as LDAPsync.jar
, the command line call should be as follows:
java -Dlogback.configurationFile=.\logback.xml -jar ldapsync.jar
Note: Make sure that you use either the full path to your logback.xml
configuration file or the relative path (.\
). Otherwise, your customized logback configuration will be ignored and the default configuration will be used.