See: Description
Interface | Description |
---|---|
Logger |
A Logger object is used to send log and trace messages to a platform
specific logging implementation.
|
Class | Description |
---|---|
JSR47Logger |
Implementation of the the logger interface that uses java.uti.logging
A Logger that utilises Java's built in logging facility - java.util.logging.
|
LoggerFactory |
A factory that returns a logger for use by the MQTT client.
|
SimpleLogFormatter |
SimpleLogFormatter prints a single line
log record in human readable form.
|
The default log and trace facility uses Java's build in log facility:-
java.util.logging. For systems where this is not available or where
an alternative logging framework is required the logging facility can be
replaced using LoggerFactory.setLogger(String)
which takes an implementation of the Logger
interface.
A sample java.util.logging properties file - jsr47min.properties is provided that demonstrates
how to run with a memory based trace facility that runs with minimal performance
overhead. The memory buffer can be dumped when a log/trace record is written matching
the MemoryHandlers trigger level or when the push method is invoked on the MemoryHandler.
Debug
provides method to make it easy
to dump the memory buffer as well as other useful debug info.