public class LoggerFactory
extends java.lang.Object
setLogger(String)
which takes an implementation of the Logger
interface.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MQTT_CLIENT_MSG_CAT
Default message catalog.
|
Constructor and Description |
---|
LoggerFactory() |
Modifier and Type | Method and Description |
---|---|
static Logger |
getLogger(java.lang.String messageCatalogName,
java.lang.String loggerID)
Find or create a logger for a named package/class.
|
static java.lang.String |
getLoggingProperty(java.lang.String name)
When run in JSR47, this allows access to the properties in the logging.properties
file.
|
static void |
setLogger(java.lang.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 java.lang.String MQTT_CLIENT_MSG_CAT
public static Logger getLogger(java.lang.String messageCatalogName, java.lang.String loggerID)
messageCatalogName
- the resource bundle containing the logging messages.loggerID
- unique name to identify this logger.java.lang.Exception
public static java.lang.String getLoggingProperty(java.lang.String name)
name
- the property to returnpublic static void setLogger(java.lang.String loggerClassName)
loggerClassName
- - Logger implementation class name to use.