Changing the 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.xmland copy the Default Logback Configuration to your file.
Note: Alternatively, you can copy the
logback.xmlfile from the
ldapsync.jararchive (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
You can change the logging configuration by passing the path as a Java parameter:
java -Dlogback.configurationFile=\path\to\logbackfile -jar ldapsync.jar
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.