|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.paho.client.mqttv3.logging.LoggerFactory
public class LoggerFactory
A factory that returns a logger for use by the MQTT client.
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 setLogger(String)
which takes an implementation of the Logger
interface.
Field Summary | |
---|---|
static String |
MQTT_CLIENT_MSG_CAT
Default message catalog. |
Constructor Summary | |
---|---|
LoggerFactory()
|
Method Summary | |
---|---|
static Logger |
getLogger(String messageCatalogName,
String loggerID)
Find or create a logger for a named package/class. |
static String |
getLoggingProperty(String name)
When run in JSR47, this allows access to the properties in the logging.properties file. |
static void |
setLogger(String loggerClassName)
Set the class name of the logger that the LoggerFactory will load If not set getLogger will attempt to create a logger appropriate for the platform. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MQTT_CLIENT_MSG_CAT
Constructor Detail |
---|
public LoggerFactory()
Method Detail |
---|
public static Logger getLogger(String messageCatalogName, String loggerID)
messageCatalogName
- the resource bundle containing the logging messages.loggerID
- unique name to identify this logger.
Exception
public static String getLoggingProperty(String name)
name
- the property to return
public static void setLogger(String loggerClassName)
loggerClassName
- - Logger implementation class name to use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |