public class LogHelper extends Object
This class has no JDK 1.4 dependencies.
The log factory is responsible for constructing the loggers and for ensuring that there is only one logger per component.
| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
jdk14
Flag to tell we are running in JDK 1.4 and can use
java.util.logging.Logger implementation.
|
protected static LoggerFactory |
loggerFactory
LoggerFactory registered for creating new loggers.
|
| Constructor and Description |
|---|
LogHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Logger |
getLogger(String loggerName,
String bundleName,
ClassLoader loader)
Get a Logger.
|
static boolean |
isJDK14()
Check to see if the JDK 1.4 logging environment is available.
|
static void |
registerLoggerFactory(LoggerFactory factory)
Register a LoggerFactory for use in managed environments or
for special situations.
|
protected static boolean jdk14
protected static LoggerFactory loggerFactory
public static Logger getLogger(String loggerName, String bundleName, ClassLoader loader)
loggerName - the relative name of this loggerbundleName - the fully qualified name of the resource bundleloader - the class loader used to load the resource bundle, or nullpublic static void registerLoggerFactory(LoggerFactory factory)
factory - the LoggerFactory to use for all getLogger requestspublic static boolean isJDK14()
Copyright © 2017. All rights reserved.