@@ -15,7 +15,7 @@ If the project using the library is also a gradle project, it is far more conven
**settings.gradle**
```
#!groovy
includeFlat'GitWrapper'// The name of the folder containing your clone of GitWrapper.
includeFlat'GitWrapper'// The name of the directory containing your clone of GitWrapper.
```
**build.gradle**
...
...
@@ -26,6 +26,14 @@ dependencies {
}
```
### Logging ###
GitWrapper classes uses the Java standard logging framework for recording exceptions and status messages. The file `Logging.properties` contains an example configuration in which console output for logging messages of the WARNING level is configured for all loggers. All loggers have the canonical name of the class they are used in and are therefore sub-loggers of `de.uni_passau.fim.seibt.gitwrapper`.
One way of configuring logging is to pass `-Djava.util.logging.config.file=<PATH TO Logging.properties>` to the JVM that is using GitWrapper. For other options see [the documentation](https://docs.oracle.com/javase/8/docs/api/java/util/logging/package-summary.html) specifically that of [LogManager](https://docs.oracle.com/javase/8/docs/api/java/util/logging/LogManager.html). For a more general overview see [this link](https://docs.oracle.com/javase/8/docs/technotes/guides/logging/overview.html).
In general, WARNING will contain all messages indicating that something went wrong, FINE and FINER will contain (more verbose) status messages and FINEST will print all output of any external commands being called by the library.
### Example ###
The following example code will clone a given repository to the current working directory and display the SHA1 hashes of all merge commits.