Changing the LDAP Sync Logging Configuration

You can create a Logback configuration for logging LDAP Sync.

This page includes the following:

Creating Your own Logback Configuration

  1. 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 the ldapsync.jar archive (for example, when using 7-ZIP).

  2. Adapt the configuration to your requirements.

  3. Save the file.

  4. Update the command line call to start LDAP Sync
  5. Your customized logback configuration will be used with the next start of LDAP Sync

Changing 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.