public class LoggerFactory extends Object
setLogger(String)
which takes an implementation of the Logger
interface.Modifier and Type | Field and Description |
---|---|
static String |
MQTT_CLIENT_MSG_CAT
Default message catalog.
|
Constructor and Description |
---|
LoggerFactory() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final String MQTT_CLIENT_MSG_CAT
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 returnpublic static void setLogger(String loggerClassName)
loggerClassName
- - Logger implementation class name to use.Copyright © 2019 Eclipse Paho. All rights reserved.