Table of Contents
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).
LOG
.
.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.
Documentation is written using AsciiDoc.
______ / ___//_ ______ ____ / /_/ / / / / \/ __/ / __/ / /_/ / / / / __/ / / /_/\____/_/_/_/\__/ /_/ Distributed Log Collection.