Logging is implemented using the SLF4J API.
Be sure to read the SLF4J documentation.
Typically each class has its own logger. We declare these as follows:
private static final Logger LOG = LoggerFactory.getLogger(MyClass.class);
Things to note here:
private static final(and in that order).
.getName()on the class.
We are using the 1.6 version of SLF4J, so we get to take advantage of the improved support for logging exceptions.
For a good discussion of this, see the relevant section in the SLF4J FAQ.
The core suite of tests (located in src/javatest) can be run by
To run only a specific test class, you can add a special argument to
the command line:
ant test -Dtestcase=<TestClass> where
<TestClass> is the name of a unit test class.
Sometimes you may want to run all tests except for a few specific ones
(flaky tests perhaps). This can be done by running
Sometimes you may want to run only a selected set of tests. This can
be done by running
ant test -Dtest.include.file=<file>
In both of these cases the tests are specified line by line in ant fileset format. The following example will recursively select all files that start with TestFoo.
Documentation is written using AsciiDoc.
______ / ___//_ ______ ____ / /_/ / / / / \/ __/ / __/ / /_/ / / / / __/ / / /_/\____/_/_/_/\__/ /_/ Distributed Log Collection.